783 current 2024-06-27 11:49:27 24.11.20240627.3664857 6.9.6-zen1 *

This commit is contained in:
zackartz 2024-06-27 11:49:31 -04:00
parent 2c2fef30d9
commit b2d397a715
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
5 changed files with 101 additions and 30 deletions

56
flake.lock generated
View file

@ -85,11 +85,11 @@
}, },
"catppuccin": { "catppuccin": {
"locked": { "locked": {
"lastModified": 1719426468, "lastModified": 1719457243,
"narHash": "sha256-HlEAH79OHAUl/ENo40j83Vb9Q8vEh+gi50TOMCgJqdA=", "narHash": "sha256-5rOWwMAp/suWVKGavhfdyLsF2mA7Fv2DQWXlt7S+QWA=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "51bd4ccfcfcc8e65a4fcb721a3e9c68afe009401", "rev": "53967ef237edd38a5b5cc5441e9b6a44b9554977",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -561,11 +561,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719418488, "lastModified": 1719438532,
"narHash": "sha256-Hu75KIbGLJA8qe42rO5WkRQ+E+BuzjS42bNEZcy9zT8=", "narHash": "sha256-/Vmso2ZMoFE3M7d1MRsQ2K5sR8CVKnrM6t1ys9Xjpz4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "607f969f5dca2dc100cbc53e24ab49ac24ef8987", "rev": "1a4f12ae0bda877ec4099b429cf439aad897d7e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -636,11 +636,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1719350558, "lastModified": 1719493676,
"narHash": "sha256-oACeKBS762XSJbN/rz5Y2xPYGzWQHhwDqn+CeODuWsM=", "narHash": "sha256-EClgfHBU8jLOQxRrkmEgkHHL22nrvNkPjhABtsOEscE=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "e4d09aa3a9de9a9e71c10bf4b6800585b3db9a4c", "rev": "f2dc48d92f340efe6d4264b92d38378c18a3e1ea",
"revCount": 4891, "revCount": 4892,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@ -842,11 +842,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1719410911, "lastModified": 1719467057,
"narHash": "sha256-jnL8LSx1wJvJTBBRwjaggFUzc9q0/KXbvPmP3tyeyag=", "narHash": "sha256-8gQ0txwuLoBpBeIhTAkl+/7Hi/AD4KE5m4YhOn1OA3E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "86c00892c3ae4869eb99b677b48ee111409a93f1", "rev": "bb6bea003dc464a4248a173e71a007d368691092",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -858,11 +858,11 @@
"neovim-src": { "neovim-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1719349695, "lastModified": 1719414226,
"narHash": "sha256-rnBC/8Y0CECztfoMKBxxo4hzd4TBu1bu9CnwpWDaB1U=", "narHash": "sha256-h/qJ+1R+BtY+mX02UsqYW82hEl78mrHTGAs9yjpFEzU=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "9dc09a4cdde9fad4e7861b9467276260bd9b82a9", "rev": "fc9b70826ec88ca2e6c0624c522b872e87aa7ac1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -873,11 +873,11 @@
}, },
"nixlib": { "nixlib": {
"locked": { "locked": {
"lastModified": 1712450863, "lastModified": 1719103869,
"narHash": "sha256-K6IkdtMtq9xktmYPj0uaYc8NsIqHuaAoRBaMgu9Fvrw=", "narHash": "sha256-kbTUy+/lfjUrMfV7JkTJwxowsFhi9Tb3BdbiOcIGcsc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "3c62b6a12571c9a7f65ab037173ee153d539905f", "rev": "f820613f886cd1aa4bcfd1dbaa6c83c8a3dcd863",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -894,11 +894,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1718025593, "lastModified": 1719450236,
"narHash": "sha256-WZ1gdKq/9u1Ns/oXuNsDm+W0salonVA0VY1amw8urJ4=", "narHash": "sha256-fh0l6pLvuTrTBakFMQfK7lwpjvWd5i+CFyVs8TMzPNo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-generators", "repo": "nixos-generators",
"rev": "35c20ba421dfa5059e20e0ef2343c875372bdcf3", "rev": "1867f28f87fcf4e817f165003aff967a5280aaab",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1017,11 +1017,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1719285171, "lastModified": 1719379843,
"narHash": "sha256-kOUKtKfYEh8h8goL/P6lKF4Jb0sXnEkFyEganzdTGvo=", "narHash": "sha256-u+D+IOAMMl70+CJ9NKB+RMrASjInuIWMHzjLWQjPZ6c=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cfb89a95f19bea461fc37228dc4d07b22fe617c2", "rev": "b3f3c1b13fb08f3828442ee86630362e81136bbc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1033,11 +1033,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1719370826, "lastModified": 1719451888,
"narHash": "sha256-Zu/zdSWXufEQ4JvizNZKC/SzUX9ZOEaqMVyZ/bBul6c=", "narHash": "sha256-Ky0sgEEJMcBmNEJztY6KcVn+6bq74EKM7pd1CR1wnPQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e10b0f95bd07422c63a88cfa50ccccebd4963b99", "rev": "3664857c48feacb35770c00abfdc671e55849be5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,7 +5,7 @@
lib, lib,
... ...
}: { }: {
wms.sway.enable = true; wms.river.enable = true;
apps = { apps = {
web.firefox.enable = true; web.firefox.enable = true;

View file

@ -0,0 +1,26 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.wms.river;
in {
options.wms.river = with types; {
enable = mkBoolOpt false "Enable River WM";
};
config = mkIf cfg.enable {
wayland.windowManager.river = {
enable = true;
settings = {
spawn = [
"firefox"
"kitty"
];
};
};
};
}

View file

@ -7,6 +7,12 @@
with lib; with lib;
with lib.custom; let with lib.custom; let
cfg = config.wms.sway; cfg = config.wms.sway;
mkService = recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["graphical-session.target"];
};
in { in {
options.wms.sway = with types; { options.wms.sway = with types; {
enable = mkBoolOpt false "Enable Sway"; enable = mkBoolOpt false "Enable Sway";
@ -16,7 +22,46 @@ in {
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
xwayland = true; xwayland = true;
package = pkgs.swayfx;
extraOptions = ["--unsupported-gpu"]; extraOptions = ["--unsupported-gpu"];
config = {
terminal = "kitty";
startup = [{command = "firefox";}];
menu = "killall anyrun || anyrun";
input = {
"Logitech USB Receiver Keyboard" = {
accel_profile = "flat";
pointer_accel = "0";
};
"Logitech USB Receiver" = {
accel_profile = "flat";
pointer_accel = "0";
};
};
output = {
DP-1 = {
mode = "2560x1440@240Hz";
adaptive_sync = "off";
};
HDMI-A-1 = {
disable = "disable";
};
};
};
};
systemd.user.services = {
swaybg = mkService {
Unit.Description = "Wallpaper Chooser";
Service = {
ExecStart = "${getExe pkgs.swaybg} -i ${wallpaper}";
Restart = "always";
};
};
}; };
}; };
} }

View file

@ -26,7 +26,7 @@ in {
enable = true; enable = true;
settings = rec { settings = rec {
initial_session = { initial_session = {
command = "sway"; command = "river";
user = "zack"; user = "zack";
}; };
default_session = initial_session; default_session = initial_session;