aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2025-01-08 22:46:31 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2025-01-08 22:46:31 +0200
commit57c493361061e1e7b35a234391b26d40efb3395b (patch)
tree366d78a7255b79592c943bf6d0fd6f9c8001b050
parent5175a6d9f39a558acd40e4c9b2a88942eac4082b (diff)
downloadnixos-configuration-57c493361061e1e7b35a234391b26d40efb3395b.tar.gz
nixos-configuration-57c493361061e1e7b35a234391b26d40efb3395b.tar.bz2
nixos-configuration-57c493361061e1e7b35a234391b26d40efb3395b.zip
chore: do some stuff
devenv: scripts and nixpkgs-fmt hyprland: enable UWSM support
-rw-r--r--devenv.nix6
-rw-r--r--home-manager/stvnliu/hypr/hyprland/default.nix2
-rw-r--r--home-manager/stvnliu/packages/discord.nix6
-rw-r--r--nixos/configuration.nix5
-rw-r--r--nixos/greetd.nix2
5 files changed, 14 insertions, 7 deletions
diff --git a/devenv.nix b/devenv.nix
index e32a155..c32313f 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -24,11 +24,15 @@
scripts.hello.exec = ''
echo hello from $GREET
'';
+ scripts.about.exec = ''
+ ${pkgs.glow}/bin/glow -p ./README.md
+ less ./LICENSE
+ '';
enterShell = ''
hello
git --version
- alejandra --version
+ nixpkgs-fmt --version
'';
# https://devenv.sh/tests/
diff --git a/home-manager/stvnliu/hypr/hyprland/default.nix b/home-manager/stvnliu/hypr/hyprland/default.nix
index 6e27302..15902c3 100644
--- a/home-manager/stvnliu/hypr/hyprland/default.nix
+++ b/home-manager/stvnliu/hypr/hyprland/default.nix
@@ -65,7 +65,7 @@
};
# Optional
# Whether to enable hyprland-session.target on hyprland startup
- systemd = { enable = true; };
+ systemd = { enable = false; }; # set to false due to UWSM
};
# ...
}
diff --git a/home-manager/stvnliu/packages/discord.nix b/home-manager/stvnliu/packages/discord.nix
index 9a6d68c..30e8bae 100644
--- a/home-manager/stvnliu/packages/discord.nix
+++ b/home-manager/stvnliu/packages/discord.nix
@@ -1,13 +1,13 @@
{ pkgs
, ...
}: {
- home.packages = with pkgs; [ vesktop ];
- xdg.desktopEntries.discord = {
+ home.packages = with pkgs; [ discord vesktop ];
+ /*xdg.desktopEntries.discord = {
exec = "${pkgs.vesktop}/bin/vesktop";
terminal = false;
mimeType = [ "x-scheme-handler/discord" ];
name = "Discord - Vesktop";
genericName = "Discord but substituted with Vesktop";
type = "Application";
- };
+ };*/
}
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
index 8eae995..68d1365 100644
--- a/nixos/configuration.nix
+++ b/nixos/configuration.nix
@@ -86,7 +86,10 @@
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
programs = {
- hyprland.enable = true; # enables Hyprland DM.
+ hyprland = {
+ enable = true; # enables Hyprland DM.
+ withUWSM = true; # NEW Universal Wayland Session Manager
+ };
steam = {
enable = true;
remotePlay.openFirewall =
diff --git a/nixos/greetd.nix b/nixos/greetd.nix
index d5d0a07..7222c85 100644
--- a/nixos/greetd.nix
+++ b/nixos/greetd.nix
@@ -9,7 +9,7 @@ in
enable = true;
settings = {
default_session = {
- command = "${tuigreet} --time --remember --cmd Hyprland";
+ command = "${tuigreet} --time --remember";
user = "greeter";
};
};