modules, overlays, and packages have their own default.nix re-exporting things instead of reading file paths. slightly improves declarativeness. wine-osu is removed; we're just using nix-gaming (for now). our custom packages will now have to be accessed via pkgs.me instead of just pkgs. helps know where it came from future goals: get rid of our overlays completely, or at least not make it replace anything from nixpkgs
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{ config, enableGUI, inputs, modules, overlays, ... }: {
|
|
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" ];
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
users.mutableUsers = false;
|
|
|
|
system = {
|
|
configurationRevision = inputs.self.rev;
|
|
nixos = rec {
|
|
version = config.system.nixos.release + versionSuffix;
|
|
versionSuffix = "-${config.system.name}.r${builtins.toString inputs.self.revCount}.${inputs.self.shortRev}";
|
|
};
|
|
};
|
|
nix.registry.config.flake = inputs.self;
|
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = {
|
|
inherit enableGUI inputs modules;
|
|
sysConfig = config;
|
|
};
|
|
};
|
|
}
|