removing hm from server 3

This commit is contained in:
2025-08-16 10:51:47 +02:00
parent 2915931122
commit 6c0ada6f07
10 changed files with 13 additions and 24 deletions

View File

@@ -4,6 +4,7 @@
username = "cnst";
mail = "adam@cnst.dev";
sshUser = "bunk";
role = "desktop";
};
monitors = [
{

View File

@@ -62,12 +62,6 @@
modules = [
./sobotka
"${self}/nix"
# {
# home-manager = {
# users.cnst.imports = homeImports."cnst@sobotka";
# extraSpecialArgs = specialArgs;
# };
# }
self.nixosModules.nixos
self.nixosModules.settings
self.nixosModules.server
@@ -79,12 +73,6 @@
modules = [
./ziggy
"${self}/nix"
{
home-manager = {
users.cnst.imports = homeImports."cnst@ziggy";
extraSpecialArgs = specialArgs;
};
}
self.nixosModules.nixos
self.nixosModules.settings
self.nixosModules.server

View File

@@ -4,6 +4,7 @@
username = "cnst";
mail = "adam@cnst.dev";
sshUser = "kima";
role = "desktop";
};
monitors = [
{

View File

@@ -4,6 +4,7 @@
username = "cnst";
mail = "adam@cnst.dev";
sshUser = "sobotka";
role = "server";
};
};
}

View File

@@ -4,6 +4,7 @@
username = "toothpick";
mail = "place@holder";
sshUser = "toothpc";
role = "desktop";
};
monitors = [
{

View File

@@ -4,6 +4,7 @@
username = "cnst";
mail = "adam@cnst.dev";
sshUser = "ziggy";
role = "server";
};
};
}

View File

@@ -45,5 +45,10 @@ in {
default = null;
description = "Optional override for selecting an SSH key by name";
};
role = mkOption {
type = types.enum ["desktop" "server"];
default = "desktop";
description = "Defines the system role (desktop or server).";
};
};
}

View File

@@ -33,7 +33,7 @@
warn-dirty = false;
accept-flake-config = false;
# allow-import-from-derivation = true;
experimental-features = ["nix-command" "flakes" "repl-flake"];
experimental-features = ["nix-command" "flakes"];
flake-registry = "/etc/nix/registry.json";
# # for direnv GC roots

View File

@@ -1,10 +1,6 @@
{osConfig, ...}: let
hostSpecificImports =
if osConfig.networking.hostName == "sobotka"
then [
./sobotkamod.nix
]
else if osConfig.networking.hostName == "bunk"
if osConfig.networking.hostName == "bunk"
then [
./bunkmod.nix
]

View File

@@ -1,11 +1,6 @@
{osConfig, ...}: let
hostSpecificVariables =
if osConfig.networking.hostName == "sobotka"
then {
EDITOR = "hx";
TERM = "xterm-256color";
}
else if osConfig.networking.hostName == "bunk"
if osConfig.networking.hostName == "bunk"
then {
BROWSER = "zen";
EDITOR = "hx";