Compare commits
5 Commits
refactor
...
c496cd67cf
| Author | SHA1 | Date | |
|---|---|---|---|
|
c496cd67cf
|
|||
|
ff266458cc
|
|||
|
8b319073bf
|
|||
|
d8155a1747
|
|||
|
dddd8b5fe3
|
30
flake.nix
30
flake.nix
@@ -54,21 +54,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, nixvim, ... }: # Function that tells my flake which to use and what do what to do with the dependencies.
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, nixvim, ... }: # Function that tells my flake which to use and what do what to do with the dependencies.
|
||||||
let # Variables that can be used in the config files
|
rec {
|
||||||
user = "kabbone";
|
user = "kabbone";
|
||||||
userdmz = "diablo";
|
userdmz = "diablo";
|
||||||
userserver = "mephisto";
|
userserver = "mephisto";
|
||||||
location = "$HOME/.setup";
|
location = "$HOME/.setup";
|
||||||
in # Use above variables in ...
|
nixosConfigurations = ( # NixOS configurations
|
||||||
{
|
import ./hosts { # Imports ./hosts/default.nix
|
||||||
nixosConfigurations = ( # NixOS configurations
|
inherit (nixpkgs) lib;
|
||||||
import ./hosts { # Imports ./hosts/default.nix
|
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable user userdmz userserver location agenix jovian-nixos microvm impermanence lanzaboote nixvim; # Also inherit home-manager so it does not need to be defined here.
|
||||||
inherit (nixpkgs) lib;
|
nix.allowedUsers = [ "@wheel" ];
|
||||||
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable user userdmz userserver location agenix jovian-nixos microvm impermanence lanzaboote nixvim; # Also inherit home-manager so it does not need to be defined here.
|
security.sudo.execWheelOnly = true;
|
||||||
nix.allowedUsers = [ "@wheel" ];
|
}
|
||||||
security.sudo.execWheelOnly = true;
|
);
|
||||||
}
|
hydraJobs."steamdeck" = nixosConfigurations.steamdeck.config.system.build.toplevel;
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user