renaming machines for clarity

This commit is contained in:
2025-07-13 16:59:29 +02:00
parent 52685ee8d5
commit cef90a81a3
32 changed files with 355 additions and 182 deletions

80
flake.lock generated
View File

@@ -28,11 +28,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1751930350, "lastModified": 1752328525,
"narHash": "sha256-hBIrzyrwG3XjeNyzVNWKDX+yYVlpwAqf9ovgF7qecug=", "narHash": "sha256-0aaVFLQxY1dKIS5jzwhbO847yIdr3U0o2heUzC5iat4=",
"owner": "Aylur", "owner": "Aylur",
"repo": "ags", "repo": "ags",
"rev": "22f37ccb0db58d9d8a11ad0054ab20ecfad005ad", "rev": "2eb3ea54311b0f7ba9d333d661d12cda1ed5507e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -144,11 +144,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1752141190, "lastModified": 1752318841,
"narHash": "sha256-RHNq77Z84BtLTwyRtrBffm5V9006Dqw4vh3vrvULlxM=", "narHash": "sha256-/Vfi3vmpBDaEDCdPYEOgUIUTyt2lOTRWVj3ESBRIChY=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "ef0794b8e94eea166407141f7e92da75f6df925a", "rev": "b342f1adfa040963c9b00f4f1755def9f8588a58",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -203,11 +203,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1752216262, "lastModified": 1752302273,
"narHash": "sha256-OO7SPN6DfXK8TG62AKWHUYc6D8kVNaKgAStGhDBEcBc=", "narHash": "sha256-xXZ0JkrpcpSgeuhezJZV2T+7gHcYCo39ogc55c4FyRw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "1b96480284e9b3f76fb1f68dc2be246c8ae90e13", "rev": "910743660778c55917959d64980bf046f52142ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -465,11 +465,11 @@
"zon2nix": "zon2nix" "zon2nix": "zon2nix"
}, },
"locked": { "locked": {
"lastModified": 1752207706, "lastModified": 1752328988,
"narHash": "sha256-6Fiy+icid2rKXL9oKcRd3zuITSwtdnShqCPp0Evt3fM=", "narHash": "sha256-07BUaMjLkaSjUgVhlSrbODF+OZHCck5PeGvbtq6wQaA=",
"owner": "ghostty-org", "owner": "ghostty-org",
"repo": "ghostty", "repo": "ghostty",
"rev": "4aa28988a6ddd9aa8b3402e4bab05ad02a0c12c6", "rev": "b5000dcd94b75d745dacbcd3d4bfaf181d288671",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -576,11 +576,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1752196485, "lastModified": 1752333091,
"narHash": "sha256-lZfS2eNoykbgNzv/bbp1JCed5YucBKjif4df5nTZt6M=", "narHash": "sha256-eh+B8odDb6EVL3htpMzNd8ap7elM7kvCggTeNvYhZb0=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "ba04f538300735d267cbf7ec1a225abcdac3c724", "rev": "e844a4365d8556dc53b72b67206a6dca8742be80",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -596,11 +596,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752202894, "lastModified": 1752286566,
"narHash": "sha256-knafgng4gCjZIUMyAEWjxxdols6n/swkYnbWr+oF+1w=", "narHash": "sha256-A4nftqiNz2bNihz0bKY94Hq/6ydR6UQOcGioeL7iymY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "fab659b346c0d4252208434c3c4b3983a4b38fec", "rev": "392ddb642abec771d63688c49fa7bcbb9d2a5717",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -638,11 +638,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751824240, "lastModified": 1752202894,
"narHash": "sha256-aDDC0CHTlL7QDKWWhdbEgVPK6KwWt+ca0QkmHYZxMzI=", "narHash": "sha256-knafgng4gCjZIUMyAEWjxxdols6n/swkYnbWr+oF+1w=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "fd9e55f5fac45a26f6169310afca64d56b681935", "rev": "fab659b346c0d4252208434c3c4b3983a4b38fec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -789,11 +789,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1752149340, "lastModified": 1752337199,
"narHash": "sha256-DJc2ROpttbP6FHcXwWpmK7EB2cpVsP/LmXjEr8RWcO8=", "narHash": "sha256-QezjVkFHSa4AfyUVs2oRhNxELLLJxXM4WbJIzXWtsPw=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland", "repo": "hyprland",
"rev": "b5433bb75324a95dd27eb5492141565466c2cdd6", "rev": "8bfff87833e403c9e8e43af576d48645f98e16d6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1177,11 +1177,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751529406, "lastModified": 1752218319,
"narHash": "sha256-jwKDHyUycp678zDYa5Hyfq3msO73YMXdZPxp96dU7po=", "narHash": "sha256-fEvLVaVduwVotOib8NqO0e4N3dMsdA04Jlfm2sZQH5Q=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "b2e5ce654e4f5bf8905c2e07a96dcf4966e6277d", "rev": "d5da490d8c2553fc8d589b49f9c036973b9656a1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1273,11 +1273,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752199489, "lastModified": 1752285931,
"narHash": "sha256-p2zkn8fdLvZ19MgAA5CdiuQWQ/gE3YNg1Nhbm4EAflI=", "narHash": "sha256-6jawOVAYX+hgFQgJb6+Ll7vKPGUwrNsNl3n6ThSBKW4=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "62f976ed47de88323770646a9a92e4912d33585f", "rev": "a5bdc5faada1290ad6ca0b91d5ca87bbfbde474a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1584,11 +1584,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1752182378, "lastModified": 1752262373,
"narHash": "sha256-bKzsGh+1AWSpL2Q2/0FKgNchTJOmYpQH2BS9dCyKXaI=", "narHash": "sha256-eRDeo/hVnf958ESWy8qV/jZj4ZRbFXsmMdw1cnI57dE=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "e2c8cefa63bd4cafb66978867c0f1ec2ba14bb03", "rev": "a489123e806ceadfdc5568bf9609b0468f5a2e6a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1606,11 +1606,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751856221, "lastModified": 1752201818,
"narHash": "sha256-/QE1eV0ckFvgRMcKjZqgdJDoXFNwSMepwRoBjaw2MCk=", "narHash": "sha256-d8KczaVT8WFEZdWg//tMAbv8EDyn2YTWcJvSY8gqKBU=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "34cae4b56929c5b340e1c5b10d9a98a425b2a51e", "rev": "bd8f8329780b348fedcd37b53dbbee48c08c496d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1901,11 +1901,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752095083, "lastModified": 1752246318,
"narHash": "sha256-fb5xIlyJlDZb7PN95nucFeuFEHyXEwXK9zxBFPCFef4=", "narHash": "sha256-NV4/8N2p+ao8t1BmCqOeS22Tf17yTWDZCnCtRJWLt+U=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "24ad25977fb703d35239e9ba4d289d4971d7b1cc", "rev": "13149225d583c9f39ec2d3fd52f6bd5331c64914",
"revCount": 112, "revCount": 113,
"type": "git", "type": "git",
"url": "https://git.sr.ht/~canasta/zen-browser-flake" "url": "https://git.sr.ht/~canasta/zen-browser-flake"
}, },

View File

@@ -35,7 +35,7 @@ in {
./modules.nix ./modules.nix
]; ];
networking.hostName = "cnixpad"; networking.hostName = "bunk";
swapDevices = [ swapDevices = [
{ {

View File

@@ -124,7 +124,7 @@
services = { services = {
agenix = { agenix = {
enable = true; enable = true;
cnixpad = { bunk = {
enable = true; enable = true;
}; };
}; };

View File

@@ -23,15 +23,14 @@
# get these into the module system # get these into the module system
specialArgs = {inherit inputs self userConfig systemConfig hostConfig cnstConfig toothpickConfig umodPath smodPath;}; specialArgs = {inherit inputs self userConfig systemConfig hostConfig cnstConfig toothpickConfig umodPath smodPath;};
in { in {
cnixtop = nixosSystem { kima = nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = [ modules = [
./cnixtop ./kima
"${self}/nix" "${self}/nix"
{ {
home-manager = { home-manager = {
users.cnst.imports = homeImports."cnst@cnixtop"; users.cnst.imports = homeImports."cnst@kima";
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };
} }
@@ -41,14 +40,14 @@
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
]; ];
}; };
cnixpad = nixosSystem { bunk = nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = [ modules = [
./cnixpad ./bunk
"${self}/nix" "${self}/nix"
{ {
home-manager = { home-manager = {
users.cnst.imports = homeImports."cnst@cnixpad"; users.cnst.imports = homeImports."cnst@bunk";
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };
} }
@@ -57,14 +56,14 @@
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
]; ];
}; };
cnixlab = nixosSystem { sobotka = nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = [ modules = [
./cnixlab ./sobotka
"${self}/nix" "${self}/nix"
{ {
home-manager = { home-manager = {
users.cnstlab.imports = homeImports."cnstlab@cnixlab"; users.cnst.imports = homeImports."cnst@sobotka";
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };
} }

View File

@@ -37,7 +37,7 @@ in {
time.hardwareClockInLocalTime = true; time.hardwareClockInLocalTime = true;
networking.hostName = "cnixtop"; networking.hostName = "kima";
environment.variables = { environment.variables = {
NH_FLAKE = "/home/cnst/.nix-config"; NH_FLAKE = "/home/cnst/.nix-config";

View File

@@ -128,7 +128,7 @@
services = { services = {
agenix = { agenix = {
enable = true; enable = true;
cnixtop = { kima = {
enable = true; enable = true;
}; };
}; };

View File

@@ -6,7 +6,7 @@
}: let }: let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in { in {
users.users.cnstlab = { users.users.cnst = {
isNormalUser = true; isNormalUser = true;
shell = pkgs.fish; shell = pkgs.fish;
extraGroups = ifTheyExist [ extraGroups = ifTheyExist [
@@ -37,9 +37,9 @@ in {
boot.initrd.luks.devices."luks-47b35d4b-467a-4637-a5f9-45177da62897".device = "/dev/disk/by-uuid/47b35d4b-467a-4637-a5f9-45177da62897"; boot.initrd.luks.devices."luks-47b35d4b-467a-4637-a5f9-45177da62897".device = "/dev/disk/by-uuid/47b35d4b-467a-4637-a5f9-45177da62897";
networking.hostName = "cnixlab"; networking.hostName = "sobotka";
environment.variables.NH_FLAKE = "/home/cnstlab/.nix-config"; environment.variables.NH_FLAKE = "/home/cnst/.nix-config";
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = lib.mkDefault "25.05"; system.stateVersion = lib.mkDefault "25.05";

View File

@@ -125,7 +125,7 @@
services = { services = {
agenix = { agenix = {
enable = false; enable = false;
cnixtop = { kima = {
enable = false; enable = false;
}; };
}; };
@@ -149,7 +149,7 @@
}; };
greetd = { greetd = {
enable = false; enable = false;
user = "cnstlab"; user = "cnst";
}; };
gvfs = { gvfs = {
enable = false; enable = false;

View File

@@ -23,16 +23,9 @@ in {
]; ];
shellAbbrs = { shellAbbrs = {
extract = "extract.sh"; extract = "extract.sh";
homemodules = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/home.nix";
hmod = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/home.nix";
homeoptions = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/options.nix";
hopt = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/options.nix";
nixosmodules = "$EDITOR /home/$USER/.nix-config/hosts/$hostname/modules.nix";
nmod = "$EDITOR /home/$USER/.nix-config/hosts/$hostname/modules.nix";
nixcleanboot = "sudo nix run /home/$USER/.nix-config#cleanup-boot"; nixcleanboot = "sudo nix run /home/$USER/.nix-config#cleanup-boot";
nixclean = "nh clean all --keep 3"; nixclean = "nh clean all --keep 3";
nixdev = "nix develop ~/.nix-config -c $SHELL"; nixdev = "nix develop ~/.nix-config -c $SHELL";
nixconfig = "cd /home/$USER/.nix-config/";
nixup = "nh os switch -H $hostname"; nixup = "nh os switch -H $hostname";
nixupv = "nh os switch -v -H $hostname"; nixupv = "nh os switch -v -H $hostname";
flakeup = "nix flake update"; flakeup = "nix flake update";
@@ -43,6 +36,13 @@ in {
"...." = "cd ../../../"; "...." = "cd ../../../";
"....." = "cd ../../../../"; "....." = "cd ../../../../";
"......" = "cd ../../../../../"; "......" = "cd ../../../../../";
nixconfig = "cd /home/$USER/.nix-config/";
homemodules = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/{$hostname}mod.nix";
hmod = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/{$hostname}mod.nix";
homeoptions = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/{$hostname}opt.nix";
hopt = "$EDITOR /home/$USER/.nix-config/users/$USER/modules/{$hostname}opt.nix";
nixosmodules = "$EDITOR /home/$USER/.nix-config/hosts/$hostname/modules.nix";
nmod = "$EDITOR /home/$USER/.nix-config/hosts/$hostname/modules.nix";
tree = "${getExe eza} --tree --icons=always"; tree = "${getExe eza} --tree --icons=always";
cat = "${getExe bat} --style=plain"; cat = "${getExe bat} --style=plain";
ls = "${getExe eza} -h --git --icons --color=auto --group-directories-first -s extension"; ls = "${getExe eza} -h --git --icons --color=auto --group-directories-first -s extension";

View File

@@ -44,10 +44,10 @@ in {
}; };
}; };
} }
(mkIf (host == "cnixtop") { (mkIf (host == "kima") {
programs.fuzzel.settings.main.terminal = "${inputs.ghostty.packages.x86_64-linux.default}/bin/ghostty"; programs.fuzzel.settings.main.terminal = "${inputs.ghostty.packages.x86_64-linux.default}/bin/ghostty";
}) })
(mkIf (host == "cnixpad") { (mkIf (host == "bunk") {
programs.fuzzel.settings.main.terminal = "${pkgs.foot}/bin/foot"; programs.fuzzel.settings.main.terminal = "${pkgs.foot}/bin/foot";
}) })
(mkIf (host == "toothpc") { (mkIf (host == "toothpc") {

View File

@@ -6,7 +6,7 @@
}: let }: let
inherit (lib) mkIf mkEnableOption mkForce elem; inherit (lib) mkIf mkEnableOption mkForce elem;
browser = browser =
if elem osConfig.networking.hostName ["cnixtop" "cnixpad"] if elem osConfig.networking.hostName ["kima" "bunk"]
then "zen.desktop" then "zen.desktop"
else "firefox.desktop"; else "firefox.desktop";
cfg = config.home.services.xdg; cfg = config.home.services.xdg;

View File

@@ -62,7 +62,7 @@ in {
}; };
} }
(mkIf (host == "cnixtop") { (mkIf (host == "kima") {
programs.hyprland.settings = { programs.hyprland.settings = {
render = { render = {
direct_scanout = 1; direct_scanout = 1;
@@ -80,7 +80,7 @@ in {
}; };
}) })
(mkIf (host == "cnixpad") { (mkIf (host == "bunk") {
programs.hyprland.settings = { programs.hyprland.settings = {
input = { input = {
kb_options = "ctrl:swapcaps"; kb_options = "ctrl:swapcaps";

View File

@@ -92,7 +92,7 @@ in {
}; };
} }
(mkIf (host == "cnixtop") { (mkIf (host == "kima") {
programs.hyprland.settings = { programs.hyprland.settings = {
"$terminal" = "alacritty"; "$terminal" = "alacritty";
"$browser" = "zen"; "$browser" = "zen";
@@ -104,7 +104,7 @@ in {
}; };
}) })
(mkIf (host == "cnixpad") { (mkIf (host == "bunk") {
programs.hyprland.settings = { programs.hyprland.settings = {
"$terminal" = "foot"; "$terminal" = "foot";
"$browser" = "zen"; "$browser" = "zen";

View File

@@ -78,7 +78,7 @@ in {
]; ];
}; };
} }
(mkIf (host == "cnixtop") { (mkIf (host == "kima") {
programs.hyprland.settings.workspace = [ programs.hyprland.settings.workspace = [
"name:1,monitor:DP-3" "name:1,monitor:DP-3"
"name:2,monitor:DP-3" "name:2,monitor:DP-3"
@@ -92,7 +92,7 @@ in {
"name:10,monitor:DP-3" "name:10,monitor:DP-3"
]; ];
}) })
(mkIf (host == "cnixpad") { (mkIf (host == "bunk") {
programs.hyprland.settings.workspace = []; programs.hyprland.settings.workspace = [];
}) })
(mkIf (host == "toothpc") { (mkIf (host == "toothpc") {

View File

@@ -28,7 +28,7 @@ in {
}; };
} }
(mkIf (host == "cnixtop") { (mkIf (host == "kima") {
programs.hyprland.settings.exec-once = programs.hyprland.settings.exec-once =
[ [
"uwsm app -- mullvad-vpn" "uwsm app -- mullvad-vpn"
@@ -37,7 +37,7 @@ in {
++ commonExecOnce; ++ commonExecOnce;
}) })
(mkIf (host == "cnixpad") { (mkIf (host == "bunk") {
programs.hyprland.settings.exec-once = programs.hyprland.settings.exec-once =
[] []
++ commonExecOnce; ++ commonExecOnce;

View File

@@ -12,27 +12,32 @@ in {
options = { options = {
nixos.services.agenix = { nixos.services.agenix = {
enable = mkEnableOption "Enables agenix system environment"; enable = mkEnableOption "Enables agenix system environment";
cnixtop.enable = mkOption { kima.enable = mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; 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 { toothpc.enable = mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
description = "Apply toothpc agenix settings"; description = "Apply toothpc agenix settings";
}; };
cnixpad.enable = mkOption {
type = lib.types.bool;
default = false;
description = "Apply cnixpad agenix settings";
};
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
age = mkMerge [ age = mkMerge [
(mkIf cfg.cnixtop.enable { (mkIf cfg.kima.enable {
secrets = { secrets = {
cnstssh.file = "${self}/secrets/cnstssh.age"; cnstssh.file = "${self}/secrets/cnstssh.age";
cnixssh.file = "${self}/secrets/cnixssh.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 { (mkIf cfg.toothpc.enable {
secrets = { secrets = {
# Add toothpc specific secrets here # Add toothpc specific secrets here
}; };
}) })
(mkIf cfg.cnixpad.enable {
secrets = {
# Add adampad specific secrets here
};
})
]; ];
environment = { environment = {

View File

@@ -6,9 +6,9 @@
inherit (lib) mkOption types; inherit (lib) mkOption types;
sshKeys = { sshKeys = {
cnixpad = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIXCjkKouZrsMoswMIeueO8X/c3kuY3Gb0E9emvkqwUv cnst@cnixpad"; bunk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIXCjkKouZrsMoswMIeueO8X/c3kuY3Gb0E9emvkqwUv cnst@cnixpad";
cnixlab = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICiNcNex+/hrEQJYJJTj89uPXocSfChU38E5TujWdxaM cnstlab@cnixlab"; sobotka = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICiNcNex+/hrEQJYJJTj89uPXocSfChU38E5TujWdxaM cnstlab@cnixlab";
cnixtop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEUub8vbzUn2f39ILhAJ2QeH8xxLSjiyUuo8xvHGx/VB adam@cnst.dev"; kima = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEUub8vbzUn2f39ILhAJ2QeH8xxLSjiyUuo8xvHGx/VB adam@cnst.dev";
toothpc = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGu5vZbb5ExampleKeyHereGfDF9c5 toothpick@toothpc"; toothpc = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGu5vZbb5ExampleKeyHereGfDF9c5 toothpick@toothpc";
}; };

View File

@@ -1,18 +1,8 @@
{ {pkgs, ...}: {
pkgs,
lib,
config,
# osConfig,
...
}:
# let
# isCnixpad = osConfig.networking.hostName == "cnixpad";
# in
{
imports = [ imports = [
./modules ./modules
./variables
]; ];
# ++ lib.optionals isCnixpad [./cpmodules.nix];
home = { home = {
username = "cnst"; username = "cnst";
@@ -20,21 +10,8 @@
stateVersion = "23.11"; stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"]; extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [ packages = with pkgs; [
# misc.system
bun bun
]; ];
sessionVariables = {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
# GEMINI_API_KEY = "$(cat ${config.age.secrets.gcapi.path})";
};
}; };
manual = { manual = {
@@ -44,6 +21,4 @@
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
# systemd.user.targets.tray.Unit.Requires = lib.mkForce ["graphical-session.target"];
} }

View File

@@ -2,7 +2,7 @@
accounts = { accounts = {
username = "cnst"; username = "cnst";
mail = "adam@cnst.dev"; mail = "adam@cnst.dev";
sshUser = "cnixtop"; sshUser = "bunk";
}; };
monitors = [ monitors = [
{ {

View File

@@ -1,6 +1,19 @@
{ {osConfig, ...}: let
imports = [ hostSpecificImports =
./home.nix if osConfig.networking.hostName == "sobotka"
./options.nix then [
]; ./sobotkamod.nix
./sobotkaopt.nix
]
else if osConfig.networking.hostName == "bunk"
then [
./bunkmod.nix
./bunkopt.nix
]
else [
./kimamod.nix
./kimaopt.nix
];
in {
imports = hostSpecificImports;
} }

View File

@@ -0,0 +1,155 @@
{
home = {
programs = {
aerc = {
enable = false;
};
alacritty = {
enable = true;
};
bash = {
enable = true;
};
chromium = {
enable = true;
};
discord = {
enable = true;
variant = "vesktop";
};
eza = {
enable = true;
};
floorp = {
enable = false;
};
firefox = {
enable = true;
};
fish = {
enable = true;
};
foot = {
enable = true;
};
fuzzel = {
enable = true;
};
git = {
enable = true;
};
ghostty = {
enable = true;
};
helix = {
enable = true;
};
hyprlock = {
enable = true;
};
jujutsu = {
enable = false;
};
kitty = {
enable = false;
};
misc = {
enable = true;
};
mpv = {
enable = true;
};
neovim = {
enable = false;
};
nvf = {
enable = false;
};
nwg-bar = {
enable = true;
};
rofi = {
enable = true;
};
ssh = {
enable = true;
};
tuirun = {
enable = true;
};
vscode = {
enable = false;
};
waybar = {
enable = true;
};
wezterm = {
enable = false;
};
yazi = {
enable = true;
};
zathura = {
enable = true;
};
zed-editor = {
enable = false;
};
zellij = {
enable = false;
};
zen = {
enable = true;
};
zsh = {
enable = false;
};
};
services = {
blueman-applet = {
enable = false;
};
copyq = {
enable = false;
};
dconf = {
settings = {
color-scheme = "prefer-dark";
};
};
dunst = {
enable = true;
};
gpg = {
enable = true;
};
gtk = {
enable = true;
};
hypridle = {
enable = true;
};
hyprpaper = {
enable = true;
};
mako = {
enable = false;
};
nix-index = {
enable = true;
};
protonmail-bridge = {
enable = false;
};
syncthing = {
enable = true;
};
udiskie = {
enable = true;
};
xdg = {
enable = true;
};
};
};
}

View File

@@ -1,8 +1,8 @@
{ {
accounts = { accounts = {
username = "cnstlab"; username = "cnst";
mail = "adam@cnst.dev"; mail = "adam@cnst.dev";
sshUser = "cnixlab"; sshUser = "kima";
}; };
monitors = [ monitors = [
{ {

View File

@@ -0,0 +1,44 @@
{
accounts = {
username = "cnst";
mail = "adam@cnst.dev";
sshUser = "sobotka";
};
monitors = [
{
name = "DP-3";
width = 2560;
height = 1440;
refreshRate = 240;
position = "0x0";
transform = 0;
bitDepth = 10;
workspace = "1";
primary = true;
}
{
name = "DP-4";
width = 1920;
height = 1080;
refreshRate = 60;
position = "2560x0";
transform = 3;
workspace = "5";
primary = false;
}
{
name = "eDP-1";
width = 1920;
height = 1200;
refreshRate = 60;
workspace = "1";
primary = false;
}
];
theme = {
background = {
lockscreen = "wallpaper_2";
desktop = "wallpaper_1";
};
};
}

View File

@@ -0,0 +1,27 @@
{osConfig, ...}: let
hostSpecificVariables =
if osConfig.networking.hostName == "sobotka"
then {
EDITOR = "hx";
TERM = "xterm-256color";
}
else if osConfig.networking.hostName == "bunk"
then {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
}
else {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
};
in {
home.sessionVariables = hostSpecificVariables;
}

View File

@@ -1,43 +0,0 @@
{
pkgs,
lib,
config,
# osConfig,
...
}:
# let
# isCnixpad = osConfig.networking.hostName == "cnixpad";
# in
{
imports = [
./modules
];
# ++ lib.optionals isCnixpad [./cpmodules.nix];
home = {
username = "cnstlab";
homeDirectory = "/home/cnstlab";
stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [
# misc.system
bun
];
sessionVariables = {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
};
};
manual = {
html.enable = false;
json.enable = false;
manpages.enable = false;
};
programs.home-manager.enable = true;
# systemd.user.targets.tray.Unit.Requires = lib.mkForce ["graphical-session.target"];
}

View File

@@ -1,6 +0,0 @@
{
imports = [
./home.nix
./options.nix
];
}

View File

@@ -6,7 +6,6 @@
extraSpecialArgs = {inherit inputs self;}; extraSpecialArgs = {inherit inputs self;};
sharedImports = [ sharedImports = [
# ./etc
"${self}/scripts" "${self}/scripts"
inputs.nvf.homeManagerModules.default inputs.nvf.homeManagerModules.default
self.nixosModules.home self.nixosModules.home
@@ -14,20 +13,20 @@
]; ];
homeImports = { homeImports = {
"cnst@cnixtop" = "cnst@kima" =
sharedImports sharedImports
++ [ ++ [
./cnst ./cnst
]; ];
"cnst@cnixpad" = "cnst@bunk" =
sharedImports sharedImports
++ [ ++ [
./cnst ./cnst
]; ];
"cnstlab@cnixlab" = "cnst@sobotka" =
sharedImports sharedImports
++ [ ++ [
./cnstlab ./cnst
]; ];
"toothpick@toothpc" = "toothpick@toothpc" =
sharedImports sharedImports