diff --git a/flake.nix b/flake.nix index 481dbe0..339ac05 100644 --- a/flake.nix +++ b/flake.nix @@ -92,6 +92,7 @@ ./hosts/generic/users.nix ./hosts/Quark/Quark-hardware.nix ./hosts/Quark/smb.nix + ./hosts/Quark/sound.nix ./hosts/generic/virtualization.nix # hm-stable.nixosModules.home-manager { # home-manager.useUserPackages = true; diff --git a/hosts/Quark/Quark-hardware.nix b/hosts/Quark/Quark-hardware.nix index bf60db3..2159b19 100644 --- a/hosts/Quark/Quark-hardware.nix +++ b/hosts/Quark/Quark-hardware.nix @@ -34,6 +34,18 @@ fsType = "btrfs"; options = [ "subvol=@nix" ]; }; + fileSystems."/vol/me" = { + device = "/dev/sda1"; + fsType = "ntfs"; + }; + fileSystems."/vol/dad" = { + device = "/dev/sda2"; + fsType = "ntfs"; + }; + fileSystems."/vol/mom" = { + device = "/dev/sda3"; + fsType = "ntfs"; + }; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/Quark/smb.nix b/hosts/Quark/smb.nix index 5794948..9620ce5 100644 --- a/hosts/Quark/smb.nix +++ b/hosts/Quark/smb.nix @@ -17,7 +17,7 @@ services.samba = { "guest account" = "nobody"; "map to guest" = "bad user"; }; - "private" = { + "dad" = { "path" = "/vol/dad"; "browseable" = "yes"; "read only" = "no"; @@ -27,6 +27,26 @@ services.samba = { "force user" = "yaroslav"; "force group" = "users"; }; + "mom" = { + "path" = "/vol/mom"; + "browseable" = "yes"; + "read only" = "no"; + "guest ok" = "no"; + "create mask" = "0644"; + "directory mask" = "0755"; + "force user" = "yaroslav"; + "force group" = "users"; + }; + "me" = { + "path" = "/vol/me"; + "browseable" = "yes"; + "read only" = "no"; + "guest ok" = "no"; + "create mask" = "0644"; + "directory mask" = "0755"; + "force user" = "yaroslav"; + "force group" = "users"; + }; }; }; diff --git a/hosts/Quark/sound.nix b/hosts/Quark/sound.nix new file mode 100644 index 0000000..6b6c83e --- /dev/null +++ b/hosts/Quark/sound.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment this + jack.enable = true; + }; +}