test
This commit is contained in:
parent
25b5b50536
commit
890d6008c6
2 changed files with 17 additions and 25 deletions
38
flake.nix
38
flake.nix
|
@ -19,31 +19,23 @@
|
||||||
libx = import ./lib { inherit inputs outputs stateVersion hmStateVersion; };
|
libx = import ./lib { inherit inputs outputs stateVersion hmStateVersion; };
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixos-laptop = libx.mkHost
|
nixos-laptop = libx.mkHost { hostname = "nixos-laptop"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox"; };
|
||||||
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox"; };
|
nixos-framework = libx.mkHost { hostname = "nixos-framework"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox"; };
|
||||||
nixos-framework = libx.mkHost
|
nixos-rpi4-01 = libx.mkHost { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
|
||||||
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox"; };
|
nixos-rpi4-02 = libx.mkHost { hostname = "nixos-rpi4-02"; platform = "aarch64-linux"; };
|
||||||
nixos-rpi4-01 = libx.mkHost
|
nixos-rpi4-03 = libx.mkHost { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
|
||||||
{ 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"; };
|
|
||||||
};
|
};
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"albert@nixos-laptop" = libx.mkHome
|
"albert@nixos-laptop" = libx.mkHome { hostname = "nixos-laptop"; desktop = "hyprland"; theme = "gruvbox"; };
|
||||||
{ hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
|
"albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "gruvbox"; };
|
||||||
"albert@nixos-framework" = libx.mkHome
|
"albert@nixos-rpi4-01" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
|
||||||
{ hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; theme = "gruvbox"; };
|
"albert@nixos-rpi4-02" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
|
||||||
"albert@nixos-rpi4-01" = libx.mkHome
|
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
|
||||||
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
|
};
|
||||||
"albert@nixos-rpi4-02" = libx.mkHome
|
images = {
|
||||||
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
|
nixos-rpi4-01 = nixosConfigurations.nixos-rpi4-01.config.system.build.sdImage;
|
||||||
"albert@nixos-rpi4-03" = libx.mkHome
|
nixos-rpi4-02 = nixosConfigurations.nixos-rpi4-02.config.system.build.sdImage;
|
||||||
{ hostname = "nixos-rpi4-01"; username = "albert"; platform = "aarch64-linux"; };
|
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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
# Helper function for generating home-manager configs
|
# Helper function for generating home-manager configs
|
||||||
mkHome = {
|
mkHome = {
|
||||||
hostname,
|
hostname,
|
||||||
username,
|
username ? "albert",
|
||||||
desktop ? null,
|
desktop ? null,
|
||||||
platform ? "x86_64-linux",
|
platform ? "x86_64-linux",
|
||||||
theme ? "default"
|
theme ? "default"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
# Helper function for generating host configs
|
# Helper function for generating host configs
|
||||||
mkHost = {
|
mkHost = {
|
||||||
hostname,
|
hostname,
|
||||||
username,
|
username ? "albert",
|
||||||
desktop ? null,
|
desktop ? null,
|
||||||
installer ? null,
|
installer ? null,
|
||||||
gpu ? null,
|
gpu ? null,
|
||||||
|
|
Loading…
Reference in a new issue