flakes/hosts/winter.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

{ config, modules, overlays, pkgs, ... }: {
2021-05-11 14:32:58 +07:00
networking.hostName = "winter";
system.stateVersion = "20.09";
2021-05-16 22:36:56 +07:00
environment.etc = {
"machine-id".source = "/var/persist/machine-id";
"ssh/ssh_host_rsa_key".source = "/var/persist/ssh_host_rsa_key";
"ssh/ssh_host_rsa_key.pub".source = "/var/persist/ssh_host_rsa_key.pub";
"ssh/ssh_host_ed25519_key".source = "/var/persist/ssh_host_ed25519_key";
"ssh/ssh_host_ed25519_key.pub".source = "/var/persist/ssh_host_ed25519_key.pub";
2021-05-16 22:36:56 +07:00
};
environment.pathsToLink = [ "/share/zsh" ];
2021-05-16 21:50:29 +07:00
users.mutableUsers = false;
imports = with modules.system; [
audio
gui
hardware-configuration
2021-07-15 19:07:57 +07:00
input
kernel
networking
packages
security
snapper
../users/rin.nix
2021-05-11 14:32:58 +07:00
];
nix = rec {
2021-05-11 14:32:58 +07:00
package = pkgs.nixUnstable;
binaryCaches = [
"https://cache.nixos.org?priority=10"
"https://lava.cachix.org"
];
binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
];
trustedBinaryCaches = binaryCaches;
2021-05-11 14:32:58 +07:00
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
2021-05-16 21:50:29 +07:00
i18n.defaultLocale = "en_GB.UTF-8";
2021-05-11 14:32:58 +07:00
}