Sun Jun 2 02:38:25 PM CEST 2024
This commit is contained in:
parent
82c3983af7
commit
cbe6f05774
|
@ -31,10 +31,10 @@
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
commonModules = name: user: [
|
commonModules = host: user: [
|
||||||
./hosts/${name}/hardware-configuration.nix
|
./hosts/${host}/hardware-configuration.nix
|
||||||
{
|
{
|
||||||
networking.hostName = name;
|
networking.hostName = host;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
time.timeZone = "Europe/Brussels";
|
time.timeZone = "Europe/Brussels";
|
||||||
|
@ -120,15 +120,15 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = {
|
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";
|
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;
|
specialArgs = inputs;
|
||||||
};
|
};
|
||||||
systems = {
|
systems = {
|
||||||
|
|
|
@ -66,7 +66,6 @@ in
|
||||||
[ "${./files/wallpaper.png}" ];
|
[ "${./files/wallpaper.png}" ];
|
||||||
|
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
"Virtual-1,${./files/wallpaper.png}"
|
|
||||||
"DP-3,${./files/wallpaper.png}"
|
"DP-3,${./files/wallpaper.png}"
|
||||||
"DP-2,${./files/wallpaper.png}"
|
"DP-2,${./files/wallpaper.png}"
|
||||||
"HDMI-A-1,${./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