52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ pkgs, shell, ... }:
|
|
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
|
in {
|
|
nix = {
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
auto-optimise-store = true;
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
extraOptions = ''
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
'';
|
|
};
|
|
system.autoUpgrade.flake = flakeURL;
|
|
environment = {
|
|
localBinInPath = true;
|
|
systemPackages = with pkgs; [ distrobox ];
|
|
shellAliases.nou = ''sudo nixos-rebuild switch --flake "${flakeURL}"'';
|
|
};
|
|
networking.networkmanager.enable = true;
|
|
services = {
|
|
power-profiles-daemon.enable = true;
|
|
passSecretService.enable = true;
|
|
};
|
|
virtualisation.podman.enable = true;
|
|
programs = { ${shell}.enable = true; };
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/London";
|
|
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";
|
|
};
|
|
};
|
|
}
|