renaming machines for clarity
This commit is contained in:
@@ -62,7 +62,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnixtop") {
|
||||
(mkIf (host == "kima") {
|
||||
programs.hyprland.settings = {
|
||||
render = {
|
||||
direct_scanout = 1;
|
||||
@@ -80,7 +80,7 @@ in {
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (host == "cnixpad") {
|
||||
(mkIf (host == "bunk") {
|
||||
programs.hyprland.settings = {
|
||||
input = {
|
||||
kb_options = "ctrl:swapcaps";
|
||||
|
||||
@@ -92,7 +92,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnixtop") {
|
||||
(mkIf (host == "kima") {
|
||||
programs.hyprland.settings = {
|
||||
"$terminal" = "alacritty";
|
||||
"$browser" = "zen";
|
||||
@@ -104,7 +104,7 @@ in {
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (host == "cnixpad") {
|
||||
(mkIf (host == "bunk") {
|
||||
programs.hyprland.settings = {
|
||||
"$terminal" = "foot";
|
||||
"$browser" = "zen";
|
||||
|
||||
@@ -78,7 +78,7 @@ in {
|
||||
];
|
||||
};
|
||||
}
|
||||
(mkIf (host == "cnixtop") {
|
||||
(mkIf (host == "kima") {
|
||||
programs.hyprland.settings.workspace = [
|
||||
"name:1,monitor:DP-3"
|
||||
"name:2,monitor:DP-3"
|
||||
@@ -92,7 +92,7 @@ in {
|
||||
"name:10,monitor:DP-3"
|
||||
];
|
||||
})
|
||||
(mkIf (host == "cnixpad") {
|
||||
(mkIf (host == "bunk") {
|
||||
programs.hyprland.settings.workspace = [];
|
||||
})
|
||||
(mkIf (host == "toothpc") {
|
||||
|
||||
@@ -28,7 +28,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnixtop") {
|
||||
(mkIf (host == "kima") {
|
||||
programs.hyprland.settings.exec-once =
|
||||
[
|
||||
"uwsm app -- mullvad-vpn"
|
||||
@@ -37,7 +37,7 @@ in {
|
||||
++ commonExecOnce;
|
||||
})
|
||||
|
||||
(mkIf (host == "cnixpad") {
|
||||
(mkIf (host == "bunk") {
|
||||
programs.hyprland.settings.exec-once =
|
||||
[]
|
||||
++ commonExecOnce;
|
||||
|
||||
@@ -12,27 +12,32 @@ in {
|
||||
options = {
|
||||
nixos.services.agenix = {
|
||||
enable = mkEnableOption "Enables agenix system environment";
|
||||
cnixtop.enable = mkOption {
|
||||
kima.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply cnix agenix settings";
|
||||
description = "Apply kima agenix settings";
|
||||
};
|
||||
bunk.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply bunk agenix settings";
|
||||
};
|
||||
sobotka.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply sobotka agenix settings";
|
||||
};
|
||||
toothpc.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply toothpc agenix settings";
|
||||
};
|
||||
cnixpad.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply cnixpad agenix settings";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
age = mkMerge [
|
||||
(mkIf cfg.cnixtop.enable {
|
||||
(mkIf cfg.kima.enable {
|
||||
secrets = {
|
||||
cnstssh.file = "${self}/secrets/cnstssh.age";
|
||||
cnixssh.file = "${self}/secrets/cnixssh.age";
|
||||
@@ -45,16 +50,21 @@ in {
|
||||
};
|
||||
};
|
||||
})
|
||||
(mkIf cfg.bunk.enable {
|
||||
secrets = {
|
||||
# Add bunk specific secrets here
|
||||
};
|
||||
})
|
||||
(mkIf cfg.sobotka.enable {
|
||||
secrets = {
|
||||
# Add sobotka specific secrets here
|
||||
};
|
||||
})
|
||||
(mkIf cfg.toothpc.enable {
|
||||
secrets = {
|
||||
# Add toothpc specific secrets here
|
||||
};
|
||||
})
|
||||
(mkIf cfg.cnixpad.enable {
|
||||
secrets = {
|
||||
# Add adampad specific secrets here
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
environment = {
|
||||
|
||||
Reference in New Issue
Block a user