Sun Jun 2 02:38:25 PM CEST 2024
This commit is contained in:
parent
82c3983af7
commit
cbe6f05774
|
@ -31,10 +31,10 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
commonModules = name: user: [
|
||||
./hosts/${name}/hardware-configuration.nix
|
||||
commonModules = host: user: [
|
||||
./hosts/${host}/hardware-configuration.nix
|
||||
{
|
||||
networking.hostName = name;
|
||||
networking.hostName = host;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
@ -120,15 +120,15 @@
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${user} = {
|
||||
imports = [ ./home.nix ];
|
||||
imports = [ ./home/${host}.nix ];
|
||||
};
|
||||
};
|
||||
}
|
||||
./hosts/${name}
|
||||
./hosts/${host}
|
||||
];
|
||||
mkSystem = name: cfg: nixpkgs.lib.nixosSystem {
|
||||
mkSystem = host: cfg: nixpkgs.lib.nixosSystem {
|
||||
system = cfg.system or "x86_64-linux";
|
||||
modules = (commonModules name cfg.user) ++ (cfg.modules or [ ]);
|
||||
modules = (commonModules host cfg.user) ++ (cfg.modules or [ ]);
|
||||
specialArgs = inputs;
|
||||
};
|
||||
systems = {
|
||||
|
|
|
@ -66,7 +66,6 @@ in
|
|||
[ "${./files/wallpaper.png}" ];
|
||||
|
||||
wallpaper = [
|
||||
"Virtual-1,${./files/wallpaper.png}"
|
||||
"DP-3,${./files/wallpaper.png}"
|
||||
"DP-2,${./files/wallpaper.png}"
|
||||
"HDMI-A-1,${./files/wallpaper.png}"
|
Before Width: | Height: | Size: 961 KiB After Width: | Height: | Size: 961 KiB |
|
@ -0,0 +1,7 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(./common.nix { inherit inputs config pkgs; })
|
||||
];
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
{}
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue