2023-06-26 13:23:27 +01:00
|
|
|
{...}: {
|
|
|
|
nix = {
|
|
|
|
settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
programs = {
|
|
|
|
ssh.startAgent = true;
|
|
|
|
dconf.enable = true;
|
|
|
|
fish.enable = true;
|
|
|
|
zsh.enable = true;
|
|
|
|
};
|
|
|
|
fonts.fontconfig.enable = true;
|
2023-06-26 15:08:44 +01:00
|
|
|
environment = {
|
|
|
|
localBinInPath = true;
|
|
|
|
shellAliases = {
|
|
|
|
ll = "ls -l";
|
2023-06-26 15:09:49 +01:00
|
|
|
nixos-update = "sudo nixos-rebuild switch --flake 'git+https://git.xenia.me.uk/xenia/nixos.git?ref=main'";
|
2023-06-26 15:08:44 +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";
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
|
|
|
i18n.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";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
programs.noisetorch.enable = true;
|
|
|
|
}
|