flakes/hosts/winter.nix
LavaDesu ab6049f578
splitting parts of system config
- hardware-configuration.nix separated into kernel-winter.nix and
  filesystem-winter.nix
- kernel.nix split off into kernel-winter.nix
2021-07-15 20:47:11 +07:00

50 lines
1.3 KiB
Nix

{ config, modules, overlays, pkgs, ... }: {
networking.hostName = "winter";
system.stateVersion = "20.09";
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";
};
environment.pathsToLink = [ "/share/zsh" ];
users.mutableUsers = false;
imports = with modules.system; [
audio
base
filesystem-winter
gui
input
kernel
kernel-winter
networking
packages
security
snapper
../users/rin.nix
];
nix = rec {
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;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
i18n.defaultLocale = "en_GB.UTF-8";
}