This commit is contained in:
iFargle 2023-09-16 21:21:45 +09:00
parent 25b5b50536
commit 890d6008c6
2 changed files with 17 additions and 25 deletions

View file

@ -19,31 +19,23 @@
libx = import ./lib { inherit inputs outputs stateVersion hmStateVersion; };
in {
nixosConfigurations = {
nixos-laptop = libx.mkHost
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox"; };
nixos-framework = libx.mkHost
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox"; };
nixos-rpi4-01 = libx.mkHost
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
nixos-rpi4-02 = libx.mkHost
{ hostname = "nixos-rpi4-02"; username = "albert"; platform = "aarch64-linux"; };
nixos-rpi4-03 = libx.mkHost
{ hostname = "nixos-rpi4-03"; username = "albert"; platform = "aarch64-linux"; };
nixos-laptop = libx.mkHost { hostname = "nixos-laptop"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox"; };
nixos-framework = libx.mkHost { hostname = "nixos-framework"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox"; };
nixos-rpi4-01 = libx.mkHost { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
nixos-rpi4-02 = libx.mkHost { hostname = "nixos-rpi4-02"; platform = "aarch64-linux"; };
nixos-rpi4-03 = libx.mkHost { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
};
homeConfigurations = {
"albert@nixos-laptop" = libx.mkHome
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-framework" = libx.mkHome
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-rpi4-01" = libx.mkHome
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-02" = libx.mkHome
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-03" = libx.mkHome
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
"albert@nixos-laptop" = libx.mkHome { hostname = "nixos-laptop"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-rpi4-01" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-02" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
};
images = {
nixos-rpi4-01 = nixosConfigurations.nixos-rpi4-01.config.system.build.sdImage;
nixos-rpi4-02 = nixosConfigurations.nixos-rpi4-02.config.system.build.sdImage;
nixos-rpi4-03 = nixosConfigurations.nixos-rpi4-03.config.system.build.sdImage;
};
images.nixos-rpi4-01 = nixosConfigurations.nixos-rpi4-01.config.system.build.sdImage;
images.nixos-rpi4-02 = nixosConfigurations.nixos-rpi4-02.config.system.build.sdImage;
images.nixos-rpi4-03 = nixosConfigurations.nixos-rpi4-03.config.system.build.sdImage;
};
}

View file

@ -3,7 +3,7 @@
# Helper function for generating home-manager configs
mkHome = {
hostname,
username,
username ? "albert",
desktop ? null,
platform ? "x86_64-linux",
theme ? "default"
@ -19,7 +19,7 @@
# Helper function for generating host configs
mkHost = {
hostname,
username,
username ? "albert",
desktop ? null,
installer ? null,
gpu ? null,