move common imports to flake function

This commit is contained in:
Anthony Rodriguez 2024-08-26 13:46:52 +02:00
parent 6b8f0f4f7f
commit a4623b8af9
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 6 additions and 11 deletions

View file

@ -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

View file

@ -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"];

View file

@ -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;