diff --git a/flake.nix b/flake.nix index d9665b8..b663ad5 100644 --- a/flake.nix +++ b/flake.nix @@ -23,10 +23,8 @@ ./modules/nix.nix ./modules/shell.nix - ./modules/linux/applications.nix - ./modules/linux/audio.nix + ./modules/linux/desktop.nix ./modules/linux/hyprland.nix - ./modules/linux/login.nix ./modules/linux/stow.nix ./modules/linux/users.nix ./modules/linux/secureboot.nix diff --git a/modules/linux/applications.nix b/modules/linux/applications.nix deleted file mode 100644 index 832ef18..0000000 --- a/modules/linux/applications.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - programs.steam = { - extraPackages = [ pkgs.gamescope ]; - gamescopeSession.enable = true; - extest.enable = true; - }; - - services.flatpak.enable = true; - -} diff --git a/modules/linux/audio.nix b/modules/linux/audio.nix deleted file mode 100644 index a92e11e..0000000 --- a/modules/linux/audio.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - # Enable sound. - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - jack.enable = true; - }; -} diff --git a/modules/linux/desktop.nix b/modules/linux/desktop.nix new file mode 100644 index 0000000..c8eb31a --- /dev/null +++ b/modules/linux/desktop.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +{ + # Enable sound. + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + }; + + # Enable display manager w/autologin + services.greetd = { + enable = true; + settings = { + initial_session = { + command = "${pkgs.hyprland}/bin/Hyprland"; + user = "nico"; + }; + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'"; + }; + }; + }; + + # Applications + programs.steam = { + # doesn't do anything if steam isn't enabled so safe here + extraPackages = [ pkgs.gamescope ]; + gamescopeSession.enable = true; + extest.enable = true; + }; + + services.flatpak.enable = true; +} diff --git a/modules/linux/login.nix b/modules/linux/login.nix deleted file mode 100644 index 69fdbac..0000000 --- a/modules/linux/login.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - services.greetd = { - enable = true; - settings = { - initial_session = { - command = "${pkgs.hyprland}/bin/Hyprland"; - user = "nico"; - }; - default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --greeting 'nyaaa~~'"; - }; - }; - }; -}