Update to NixOS 24.11

This commit is contained in:
Pim Kunis 2024-11-30 13:14:46 +01:00
parent c0a75e8e0e
commit a90c75931b
12 changed files with 140 additions and 99 deletions

View file

@ -17,8 +17,8 @@ in {
};
};
environment.cinnamon.excludePackages = with pkgs; [
gnome.gnome-terminal
environment.cinnamon.excludePackages = [
pkgs.gnome-terminal
];
};
}

View file

@ -62,6 +62,7 @@
services = {
xserver.excludePackages = [pkgs.xterm];
printing.drivers = [pkgs.hplip pkgs.gutenprint];
tailscale.enable = true;
pipewire = {
alsa.enable = true;
@ -96,15 +97,11 @@
];
};
system = {
stateVersion = "23.05";
activationScripts.diff = ''
if [[ -e /run/current-system ]]; then
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
fi
'';
};
system.activationScripts.diff = ''
if [[ -e /run/current-system ]]; then
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
fi
'';
security = {
rtkit.enable = true;
@ -115,7 +112,7 @@
};
nix = {
package = pkgs.nixFlakes;
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
@ -147,6 +144,7 @@
"steam"
"steam-original"
"steam-run"
"steam-unwrapped"
];
};

View file

@ -21,7 +21,7 @@ in {
environment = {
systemPackages =
[
pkgs.gnome.gnome-shell-extensions
pkgs.gnome-shell-extensions
]
++ (with pkgs.gnomeExtensions; [
pop-shell
@ -31,27 +31,24 @@ in {
])
++ lib.optional config.services.tailscale.enable pkgs.gnomeExtensions.tailscale-status;
gnome.excludePackages =
(with pkgs; [
epiphany
gnome-connections
gnome-console
gnome-tour
])
++ (with pkgs.gnome; [
geary
gnome-calendar
gnome-clocks
gnome-contacts
gnome-font-viewer
gnome-logs
gnome-maps
gnome-music
seahorse
totem
yelp
gnome-weather
]);
gnome.excludePackages = with pkgs; [
epiphany
gnome-connections
gnome-console
gnome-tour
geary
gnome-calendar
gnome-clocks
gnome-contacts
gnome-font-viewer
gnome-logs
gnome-maps
gnome-music
seahorse
totem
yelp
gnome-weather
];
};
};
}

9
nixos/server.nix Normal file
View file

@ -0,0 +1,9 @@
{
lib,
config,
...
}: {
config = lib.mkIf (builtins.elem "server" config.deployment.tags) {
services.openssh.enable = true;
};
}