diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-17 18:14:22 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-17 18:14:22 +0200 |
| commit | fe0e613928323f9dc538f1bdea8138456abffc4b (patch) | |
| tree | 019728342ae0f3329ab9ff631c02e55e4472f18a /common/services | |
create nix configuration
Diffstat (limited to 'common/services')
| -rw-r--r-- | common/services/default.nix | 13 | ||||
| -rw-r--r-- | common/services/greetd.nix | 14 | ||||
| -rw-r--r-- | common/services/pipewire.nix | 7 |
3 files changed, 34 insertions, 0 deletions
diff --git a/common/services/default.nix b/common/services/default.nix new file mode 100644 index 0000000..2b1b73a --- /dev/null +++ b/common/services/default.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: +let + services = [ + "greetd" + "pipewire" + ]; +in +builtins.listToAttrs ( + map (n: { + name = n; + value = import ./${n}.nix { inherit pkgs; }; + }) services +) diff --git a/common/services/greetd.nix b/common/services/greetd.nix new file mode 100644 index 0000000..2a59cbc --- /dev/null +++ b/common/services/greetd.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: +{ + enable = true; + settings = { + initial_session = { + command = "${pkgs.hyprland}/bin/Hyprland"; + user = "n8"; + }; + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --greeting 'Welcome to NixOS!' --asterisks --remember --remember-user-session --time --cmd ${pkgs.hyprland}/bin/Hyprland"; + user = "greeter"; + }; + }; +} diff --git a/common/services/pipewire.nix b/common/services/pipewire.nix new file mode 100644 index 0000000..d6efd73 --- /dev/null +++ b/common/services/pipewire.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; +} |