2023-07-31 10:55:06 +01:00
|
|
|
{ pkgs, shell, ... }:
|
|
|
|
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
2023-07-17 06:37:40 +01:00
|
|
|
in {
|
2023-06-26 13:23:27 +01:00
|
|
|
nix = {
|
2023-07-31 10:55:06 +01:00
|
|
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
2023-06-26 13:23:27 +01:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
|
|
|
};
|
2023-07-21 11:10:31 +01:00
|
|
|
system.autoUpgrade.flake = flakeURL;
|
2023-07-17 06:37:40 +01:00
|
|
|
environment = {
|
|
|
|
localBinInPath = true;
|
2023-07-31 10:55:06 +01:00
|
|
|
systemPackages = with pkgs; [ distrobox ];
|
|
|
|
shellAliases = {
|
|
|
|
nou = "sudo nixos-rebuild switch --flake ${flakeURL}";
|
|
|
|
noul = "sudo nixos-rebuild switch --flake $HOME/.config/home-manager";
|
|
|
|
hms = "${pkgs.home-manager}/bin/home-manager switch --flake ${flakeURL}";
|
|
|
|
hmsl = "${pkgs.home-manager}/bin/home-manager switch --flake $HOME/.config/home-manager";
|
|
|
|
};
|
2023-07-04 07:35:30 +01:00
|
|
|
};
|
2023-07-07 17:25:04 +01:00
|
|
|
networking.networkmanager.enable = true;
|
2023-06-26 13:23:27 +01:00
|
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
programs = {
|
2023-07-19 08:55:53 +01:00
|
|
|
${shell}.enable = true;
|
2023-06-26 13:23:27 +01:00
|
|
|
ssh.startAgent = true;
|
|
|
|
dconf.enable = true;
|
|
|
|
};
|
2023-07-12 16:43:18 +01:00
|
|
|
fonts = {
|
2023-07-27 16:17:06 +01:00
|
|
|
packages = with pkgs; [
|
2023-07-12 16:43:18 +01:00
|
|
|
# icon fonts
|
|
|
|
material-symbols
|
|
|
|
# normal fonts
|
|
|
|
jost
|
|
|
|
lexend
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
noto-fonts-emoji
|
|
|
|
roboto
|
|
|
|
# nerdfonts
|
2023-07-31 10:55:06 +01:00
|
|
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
2023-07-12 16:43:18 +01:00
|
|
|
];
|
|
|
|
fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
# user defined fonts
|
|
|
|
# the reason there's Noto Color Emoji everywhere is to override DejaVu's
|
|
|
|
# B&W emojis that would sometimes show instead of some Color emojis
|
|
|
|
defaultFonts = {
|
2023-07-31 10:55:06 +01:00
|
|
|
serif = [ "Noto Serif" "Noto Color Emoji" ];
|
|
|
|
sansSerif = [ "Noto Sans" "Noto Color Emoji" ];
|
|
|
|
monospace = [ "FiraCode Nerd Font" "Noto Color Emoji" ];
|
|
|
|
emoji = [ "Noto Color Emoji" ];
|
2023-07-12 16:43:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
services.xserver = {
|
|
|
|
layout = "gb";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
|
|
|
console.keyMap = "uk";
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/London";
|
2023-07-16 17:35:36 +01:00
|
|
|
i18n = {
|
|
|
|
# Select internationalisation properties.
|
|
|
|
defaultLocale = "en_GB.UTF-8";
|
|
|
|
extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "en_GB.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "en_GB.UTF-8";
|
|
|
|
LC_MEASUREMENT = "en_GB.UTF-8";
|
|
|
|
LC_MONETARY = "en_GB.UTF-8";
|
|
|
|
LC_NAME = "en_GB.UTF-8";
|
|
|
|
LC_NUMERIC = "en_GB.UTF-8";
|
|
|
|
LC_PAPER = "en_GB.UTF-8";
|
|
|
|
LC_TELEPHONE = "en_GB.UTF-8";
|
|
|
|
LC_TIME = "en_GB.UTF-8";
|
2023-07-13 12:41:00 +01:00
|
|
|
};
|
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
}
|