From 1aff4b801abc6c88a88fe9f30770810d0d79cf1d Mon Sep 17 00:00:00 2001 From: moons14 Date: Wed, 29 Oct 2025 02:15:23 +0900 Subject: [PATCH] hyprland --- modules/core/default.nix | 1 - modules/core/greetd.nix | 2 +- modules/core/hyprland.nix | 6 ++++++ profiles/cli.nix | 10 ++++++++++ profiles/gui.nix | 13 +++++++++++++ profiles/laptop.nix | 7 +++---- 6 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 modules/core/hyprland.nix create mode 100644 profiles/cli.nix create mode 100644 profiles/gui.nix diff --git a/modules/core/default.nix b/modules/core/default.nix index 3a43547..9c9b6e8 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -4,7 +4,6 @@ ./boot.nix ./environment.nix ./fonts.nix - ./greetd.nix ./hardware.nix ./i18n.nix ./network.nix diff --git a/modules/core/greetd.nix b/modules/core/greetd.nix index 750f9cb..cd189da 100644 --- a/modules/core/greetd.nix +++ b/modules/core/greetd.nix @@ -5,7 +5,7 @@ settings = { default_session = { user = "greeter"; - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd niri"; + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; }; }; }; diff --git a/modules/core/hyprland.nix b/modules/core/hyprland.nix new file mode 100644 index 0000000..69615ae --- /dev/null +++ b/modules/core/hyprland.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + programs.hyprland = { + enable = true; + } +} \ No newline at end of file diff --git a/profiles/cli.nix b/profiles/cli.nix new file mode 100644 index 0000000..701ce85 --- /dev/null +++ b/profiles/cli.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + imports = [ + ./cli-minimal.nix + ]; + + home-manager.users.moons.imports = [ + + ]; +} \ No newline at end of file diff --git a/profiles/gui.nix b/profiles/gui.nix new file mode 100644 index 0000000..2fb7ad2 --- /dev/null +++ b/profiles/gui.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + imports = [ + ./cli.nix + ./../modules/core/niri.nix + ./../modules/core/hyprland.nix + ./../modules/core/greetd.nix + ]; + + home-manager.users.moons.imports = [ + ./../modules/home/vscode.nix + ]; +} \ No newline at end of file diff --git a/profiles/laptop.nix b/profiles/laptop.nix index ab82792..c99617f 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix @@ -1,11 +1,10 @@ { ... }: { imports = [ - ./cli-minimal.nix - ./../modules/core/niri.nix + ./gui.nix ]; home-manager.users.moons.imports = [ - ./../modules/home/vscode.nix - ] + + ]; } \ No newline at end of file