Skip to content

Commit

Permalink
refactor: remove xserver leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
KP64 committed Dec 19, 2024
1 parent 9c1608a commit 8393050
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 45 deletions.
2 changes: 0 additions & 2 deletions hardware/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
options.hardware.nvidia.enable = lib.mkEnableOption "Nvidia drivers";

config = lib.mkIf config.hardware.nvidia.enable {
services.xserver.videoDrivers = [ "nvidia" ];

hardware = {
nvidia = {
powerManagement.enable = true;
Expand Down
20 changes: 7 additions & 13 deletions hosts/kg/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,13 @@
physicalConnections = [ (topology.mkConnectionRev "router" "wifi") ];
};

services = {
ai.ollama = {
enable = true;
acceleration = "cuda";
models = [
"llama3.2"
"llama3.1:8b"
];
};
xserver.xkb = {
layout = "de";
variant = "";
};
services.ai.ollama = {
enable = true;
acceleration = "cuda";
models = [
"llama3.2"
"llama3.1:8b"
];
};

time.timeZone = "Europe/Berlin";
Expand Down
52 changes: 27 additions & 25 deletions hosts/tp/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@
uutils-coreutils.enable = true;
polkit.enable = true;
tpm.enable = true;
secure-boot.enable = true;
sudo-rs.enable = true;
};
services.ssh.enable = false;
services.ssh.enable = true;
style.catppuccin.enable = true;
};

Expand Down Expand Up @@ -194,31 +193,34 @@
};
};

services.xserver.xkb = {
layout = "de";
variant = "";
};

time.timeZone = "Europe/Berlin";

nixpkgs.config.allowUnfree = true;

users.users.${username} = {
hashedPasswordFile = config.sops.secrets.hashed_password.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHYe+2EqTg5Uh0/PZXhnuznFE84uiEzBtgd8qz9sUWS ed25519"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAD+mYDOwD6lR89dpPCprEDTBIBNKgjzb6sqoGCHOYl7 kg@LapT"
];
extraGroups = [
"networkmanager"
"wheel"
"input"
"docker"
"kvm"
"libvirtd"
"audio"
"video"
"tss"
];
};
users.users =
let
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHYe+2EqTg5Uh0/PZXhnuznFE84uiEzBtgd8qz9sUWS ed25519"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAD+mYDOwD6lR89dpPCprEDTBIBNKgjzb6sqoGCHOYl7 kg@LapT"
];
in
{
root.openssh.authorizedKeys = { inherit keys; };

${username} = {
hashedPasswordFile = config.sops.secrets.hashed_password.path;
openssh.authorizedKeys = { inherit keys; };
extraGroups = [
"networkmanager"
"wheel"
"input"
"docker"
"kvm"
"libvirtd"
"audio"
"video"
"tss"
];
};
};
}
5 changes: 0 additions & 5 deletions hosts/ws/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@

networking.hostName = username;

services.xserver.xkb = {
layout = "en";
variant = "";
};

time.timeZone = "Europe/Berlin";

nixpkgs.config.allowUnfree = true;
Expand Down

0 comments on commit 8393050

Please sign in to comment.