diff --git a/machines/party/configuration.nix b/machines/party/configuration.nix index 9d3e0e6..d28760c 100644 --- a/machines/party/configuration.nix +++ b/machines/party/configuration.nix @@ -6,19 +6,27 @@ ./services ]; + nixpkgs.config = { allowAliases = false; }; + console.keyMap = "de"; services.xserver.layout = "de"; services.xserver.enable = true; services.xserver.desktopManager.gnome.enable = true; - services.xserver.displayManager.gdm.enable = true; + services.xserver.displayManager.gdm = { + enable = true; + autoSuspend = false; + }; security.sudo.wheelNeedsPassword = false; users.users.party = { isNormalUser = true; password = "foobar"; - extraGroups = [ "wheel" ]; + extraGroups = [ + "wheel" + "audio" + ]; }; environment.systemPackages = with pkgs; [ diff --git a/machines/party/hardware-configuration.nix b/machines/party/hardware-configuration.nix index 9c1f3eb..b32f461 100644 --- a/machines/party/hardware-configuration.nix +++ b/machines/party/hardware-configuration.nix @@ -21,18 +21,45 @@ loader.grub = { enable = true; + version = 2; device = "/dev/sda"; }; }; fileSystems = { "/" = { - device = "/dev/sda3"; + device = "/dev/disk/by-uuid/740450af-f376-48d1-9a0c-25a035964700"; fsType = "btrfs"; - options = [ "discard=async" "noatime" "compress=zstd" ]; + options = [ + "subvol=root" + "discard=async" + "compress=zstd" + ]; }; + + "/home" = { + device = "/dev/disk/by-uuid/740450af-f376-48d1-9a0c-25a035964700"; + fsType = "btrfs"; + options = [ + "subvol=home" + "discard=async" + "compress=zstd" + ]; + }; + + "/nix" = { + device = "/dev/disk/by-uuid/740450af-f376-48d1-9a0c-25a035964700"; + fsType = "btrfs"; + options = [ + "subvol=nix" + "discard=async" + "compress=zstd" + "noatime" + ]; + }; + "/boot" = { - device = "/dev/sda2"; + device = "/dev/disk/by-uuid/3e24b5cf-e59f-41b1-9eef-107f808b9242"; fsType = "ext2"; }; };