mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
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
44 lines
1.1 KiB
Nix
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
|
|
'';
|
|
};
|
|
}
|