v8k3zzl1rkw25dars9zzpbhxknw1acin

This commit is contained in:
itsscb 2024-05-14 00:51:06 +02:00
parent 239a4fc208
commit 41d7143a6d
2 changed files with 18 additions and 14 deletions

View File

@ -37,9 +37,9 @@ in {
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
@ -50,11 +50,13 @@ in {
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
};
services = {
displayManager.sddm = {
enable = true;
};
xserver = {
enable = true;
desktopManager.gnome = {
@ -65,6 +67,7 @@ in {
layout = "us";
variant = "";
};
excludePackages =
(with pkgs; [
nano
@ -86,6 +89,7 @@ in {
# Enable CUPS to print documents.
printing.enable = true;
};
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;

View File

@ -45,8 +45,8 @@ sudo nixos-rebuild switch &>nixos-switch.log || (cat nixos-switch.log | grep --c
echo -e ": Rebuild successful. Committing changes..."
# Get current generation metadata
current=$(nixos-rebuild list-generations --json | jq '.[0]')
# current=$(nix-instantiate --eval -I ./configuration.nix '<nixpkgs/nixos>' -A config.system.build.toplevel.drvPath | grep -ow '(\d|\w){32}')
current=$(nix-instantiate --eval -I ./configuration.nix '<nixpkgs/nixos>' -A config.system.build.toplevel.drvPath | grep -owP '(\d|\w){32}')
echo -e ": $current"
# Commit all changes witih the generation metadata
sudo git commit -am "$current"