Refactor : remove common hosts and move to modules

This commit is contained in:
2025-09-26 01:42:40 +02:00
parent 6135e433a6
commit 96afcd2c67
4 changed files with 2 additions and 41 deletions

View File

@@ -17,23 +17,4 @@
../../modules/core ../../modules/core
../../modules/optionnals/hosts/${hostname}.nix ../../modules/optionnals/hosts/${hostname}.nix
]; ];
boot.kernelPackages = pkgs.linuxPackages_latest;
time.timeZone = "Europe/Paris";
nix = {
settings = {
## Enable flakes
experimental-features = [
"nix-command"
"flakes"
];
## Users trusted to use flake command
trusted-users = [
"root"
"${username}"
];
};
};
} }

View File

@@ -7,8 +7,6 @@
... ...
}: }:
{ {
system.stateVersion = "25.11";
imports = builtins.trace "${inputs.mysecrets}" [ imports = builtins.trace "${inputs.mysecrets}" [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
./network.nix ./network.nix
@@ -16,23 +14,4 @@
../../modules/core ../../modules/core
../../modules/optionnals/hosts/${hostname}.nix ../../modules/optionnals/hosts/${hostname}.nix
]; ];
boot.kernelPackages = pkgs.linuxPackages_latest;
time.timeZone = "Europe/Paris";
nix = {
settings = {
## Enable flakes
experimental-features = [
"nix-command"
"flakes"
];
## Users trusted to use flake command
trusted-users = [
"root"
"${username}"
];
};
};
} }

View File

@@ -6,6 +6,7 @@
./grub.nix ./grub.nix
./packages.nix ./packages.nix
./ssh.nix ./ssh.nix
./system.nix
./tty.nix ./tty.nix
./users.nix ./users.nix
]; ];

0
modules/core/system.nix Normal file
View File