mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
refactor: remove i3 (#162)
This commit is contained in:
@@ -28,23 +28,6 @@
|
||||
];
|
||||
};
|
||||
|
||||
modules-i3 = {
|
||||
nixos-modules =
|
||||
[
|
||||
{
|
||||
modules.desktop.xorg.enable = true;
|
||||
modules.secrets.desktop.enable = true;
|
||||
modules.secrets.impermanence.enable = true;
|
||||
}
|
||||
]
|
||||
++ base-modules.nixos-modules;
|
||||
home-modules =
|
||||
[
|
||||
{modules.desktop.i3.enable = true;}
|
||||
]
|
||||
++ base-modules.home-modules;
|
||||
};
|
||||
|
||||
modules-hyprland = {
|
||||
nixos-modules =
|
||||
[
|
||||
@@ -63,15 +46,12 @@
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
# with i3 window manager
|
||||
"${name}-i3" = mylib.nixosSystem (modules-i3 // args);
|
||||
# host with hyprland compositor
|
||||
"${name}-hyprland" = mylib.nixosSystem (modules-hyprland // args);
|
||||
};
|
||||
|
||||
# generate iso image for hosts with desktop environment
|
||||
packages = {
|
||||
"${name}-i3" = inputs.self.nixosConfigurations."${name}-i3".config.formats.iso;
|
||||
"${name}-hyprland" = inputs.self.nixosConfigurations."${name}-hyprland".config.formats.iso;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -28,23 +28,6 @@
|
||||
];
|
||||
};
|
||||
|
||||
modules-i3 = {
|
||||
nixos-modules =
|
||||
[
|
||||
{
|
||||
modules.desktop.xorg.enable = true;
|
||||
modules.secrets.desktop.enable = true;
|
||||
modules.secrets.impermanence.enable = true;
|
||||
}
|
||||
]
|
||||
++ base-modules.nixos-modules;
|
||||
home-modules =
|
||||
[
|
||||
{modules.desktop.i3.enable = true;}
|
||||
]
|
||||
++ base-modules.home-modules;
|
||||
};
|
||||
|
||||
modules-hyprland = {
|
||||
nixos-modules =
|
||||
[
|
||||
@@ -63,15 +46,12 @@
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
# with i3 window manager
|
||||
"${name}-i3" = mylib.nixosSystem (modules-i3 // args);
|
||||
# host with hyprland compositor
|
||||
"${name}-hyprland" = mylib.nixosSystem (modules-hyprland // args);
|
||||
};
|
||||
|
||||
# generate iso image for hosts with desktop environment
|
||||
packages = {
|
||||
"${name}-i3" = inputs.self.nixosConfigurations."${name}-i3".config.formats.iso;
|
||||
"${name}-hyprland" = inputs.self.nixosConfigurations."${name}-hyprland".config.formats.iso;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user