mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
condensed and cleaned up home-manager configuration moved nix settings to nix.nix (nice name i know) moved all shell configuration to shell.nix moved default package exclusion to packages.nix switched to nitch from neofetch moved font from overlay removed almost pointless librewolf home-manager configuration changed wallpaper
40 lines
997 B
Nix
40 lines
997 B
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;
|
|
};
|
|
};
|
|
}
|