move common imports to flake function
This commit is contained in:
parent
6b8f0f4f7f
commit
a4623b8af9
3 changed files with 6 additions and 11 deletions
|
@ -30,6 +30,11 @@
|
|||
system = "x86_64-linux";
|
||||
|
||||
commonModules = hostname: [
|
||||
./modules/sops.nix
|
||||
./modules/system.nix
|
||||
./modules/gnome.nix
|
||||
./modules/syncthing
|
||||
./modules/stylix.nix
|
||||
./hosts/${hostname}
|
||||
sops-nix.nixosModules.sops
|
||||
stylix.nixosModules.stylix
|
||||
|
@ -43,7 +48,7 @@
|
|||
{ _module.args = { inherit hostname username; }; }
|
||||
];
|
||||
|
||||
configureSystem = hostname: homeConfig: nixpkgs.lib.nixosSystem {
|
||||
configureSystem = hostname: homeConfig: nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
modules = commonModules hostname ++ [
|
||||
{ home-manager.users.${username} = import homeConfig; }
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules/sops.nix
|
||||
../../modules/system.nix
|
||||
../../modules/gnome.nix
|
||||
../../modules/syncthing
|
||||
../../modules/stylix.nix
|
||||
];
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules/sops.nix
|
||||
../../modules/system.nix
|
||||
../../modules/gnome.nix
|
||||
../../modules/syncthing
|
||||
../../modules/stylix.nix
|
||||
];
|
||||
|
||||
services.fprintd.enable = true;
|
||||
|
|
Loading…
Reference in a new issue