Sun Jun 2 02:38:25 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-02 14:38:25 +02:00
parent 82c3983af7
commit cbe6f05774
61 changed files with 16 additions and 9 deletions

View File

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

View File

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

View File

Before

Width:  |  Height:  |  Size: 961 KiB

After

Width:  |  Height:  |  Size: 961 KiB

7
NixOS/home/nixos.nix Normal file
View File

@ -0,0 +1,7 @@
{ inputs, config, pkgs, ... }:
{
imports = [
(./common.nix { inherit inputs config pkgs; })
];
}

View File

@ -1 +1,2 @@
{}
{
}