nixos/nix.nix
ISnortPennies b3cb8940d4 renamed configuration.nix to common.nix
moved sudo configuration to shells.nix
switched to kmscon
reorganized all packages removed a few
switched from scripts to shell aliases
set keep-outputs and keep-derivations to false
removed picom from laptop
2023-02-04 16:41:29 -05:00

44 lines
1.1 KiB
Nix

{
inputs,
lib,
...
}: {
environment.etc = {
"nix/flake-channels/system".source = inputs.self;
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath;
"nix/flake-channels/home-manager".source = inputs.home-manager.outPath;
};
nix = {
nixPath = [
"nixpkgs=/etc/nix/flake-channels/nixpkgs"
"home-manager=/etc/nix/flake-channels/home-manager"
];
#automatically get registry from input flakes
registry =
{
system.flake = inputs.self;
default.flake = inputs.nixpkgs;
}
// lib.attrsets.mapAttrs (
_: source: {
flake = source;
}
) (
lib.attrsets.filterAttrs (
_: source: (
!(lib.attrsets.hasAttrByPath ["flake"] source) || source.flake == false
)
)
inputs
);
settings = {
experimental-features = ["nix-command" "flakes" "repl-flake"];
auto-optimise-store = true;
warn-dirty = false;
};
extraOptions = ''
keep-outputs = false
keep-derivations = false
'';
};
}