Forcing unstable does not work well with setting nix paths, separate that into its own nix file
This commit is contained in:
parent
66bfbba1f3
commit
1b8721c683
|
@ -61,7 +61,7 @@
|
||||||
nixos-mailserver.nixosModule
|
nixos-mailserver.nixosModule
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
JimDeck = nixpkgs-unstable.lib.nixosSystem {
|
JimDeck = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/deck.nix
|
./nixos/deck.nix
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Standalone home-manager configuration entrypoint
|
# Standalone home-manager configuration
|
||||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"jimbo@JimDesktop" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimDesktop" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"jimbo@JimDeck" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimDeck" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./home-manager/jimbo_deck.nix
|
./home-manager/jimbo_deck.nix
|
||||||
|
|
|
@ -24,21 +24,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# This will add each flake input as a registry
|
|
||||||
# To make nix commands consistent with your flake
|
|
||||||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
|
||||||
|
|
||||||
# This will additionally add your inputs to the system's legacy channels
|
|
||||||
# Making legacy nix commands consistent as well, awesome!
|
|
||||||
nix.nixPath = ["/etc/nix/path"];
|
|
||||||
environment.etc =
|
|
||||||
lib.mapAttrs'
|
|
||||||
(name: value: {
|
|
||||||
name = "nix/path/${name}";
|
|
||||||
value.source = value.flake;
|
|
||||||
})
|
|
||||||
config.nix.registry;
|
|
||||||
|
|
||||||
# Enable flakes and garbage collection
|
# Enable flakes and garbage collection
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -50,8 +35,10 @@
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 14d";
|
options = "--delete-older-than 1w"
|
||||||
};
|
};
|
||||||
|
# You can also manually optimize the store via nix-store --optimise
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
./modules/security.nix
|
./modules/security.nix
|
||||||
|
./modules/legacy.nix
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
./hardware/machines/desktop.nix
|
./hardware/machines/desktop.nix
|
||||||
|
|
16
nixos/modules/legacy.nix
Normal file
16
nixos/modules/legacy.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
# This will add each flake input as a registry
|
||||||
|
# To make nix commands consistent with your flake
|
||||||
|
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||||
|
|
||||||
|
# This will additionally add your inputs to the system's legacy channels
|
||||||
|
# Making legacy nix commands consistent as well, awesome!
|
||||||
|
nix.nixPath = ["/etc/nix/path"];
|
||||||
|
environment.etc =
|
||||||
|
lib.mapAttrs'
|
||||||
|
(name: value: {
|
||||||
|
name = "nix/path/${name}";
|
||||||
|
value.source = value.flake;
|
||||||
|
})
|
||||||
|
config.nix.registry;
|
||||||
|
}
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
./modules/security.nix
|
./modules/security.nix
|
||||||
|
./modules/legacy.nix
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
./hardware/machines/server.nix
|
./hardware/machines/server.nix
|
||||||
|
|
Loading…
Reference in a new issue