diff --git a/README.md b/README.md index 8449aa5..6b8ac59 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ Hey, you. This is my nixos configurations. - david@Tytonidae -| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | -| -------------- | --------- | ----------- | ------ | -------- | --------------- | ------- | --------------- | -| default | niri | fish + bash | helix | ghostty | fuzzel | firefox | greetd + regret | -| cosmic | cosmic de | fish + bash | helix | ghostty | cosmic-launcher | firefox | cosmic-greeter | -| kde | kde | fish + bash | helix | ghostty | - | firefox | sddm | +| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | +| -------------- | --------- | ----------- | ------ | -------- | --------------- | ------- | -------------- | +| default | niri | fish + bash | helix | ghostty | fuzzel | firefox | gdm | +| cosmic | cosmic de | fish + bash | helix | ghostty | cosmic-launcher | firefox | cosmic-greeter | +| kde | kde | fish + bash | helix | ghostty | - | firefox | sddm | - david@Akun @@ -28,9 +28,9 @@ Hey, you. This is my nixos configurations. - alice@Cape -| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | -| -------------- | ------- | ----------- | ------ | -------- | -------- | ------- | -- | -| default | - | fish + bash | helix | - | - | - | - | +| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | +| -------------- | ------- | ----------- | ------ | -------- | -------- | ------- | --- | +| default | - | fish + bash | helix | - | - | - | - | ## FlakE OutputS and StructurE diff --git a/flake.lock b/flake.lock index c9a2e91..11378e6 100644 --- a/flake.lock +++ b/flake.lock @@ -90,11 +90,11 @@ "bt-tracker": { "flake": false, "locked": { - "lastModified": 1746144670, - "narHash": "sha256-l1Roga5tbx5775OQDD34lQAntmlU56A3HKqJrK86P2I=", + "lastModified": 1746087093, + "narHash": "sha256-UFTBJnKCGkRXxWQT4vi85SdI15I/sQf2Ldr63BftiHs=", "owner": "XIU2", "repo": "TrackersListCollection", - "rev": "0a9ac8d11e9e67649edf33b378190e17ce1e7e9e", + "rev": "3ce9324a2612bd84051d3dc30bb9d5a5a7804e95", "type": "github" }, "original": { @@ -113,11 +113,11 @@ ] }, "locked": { - "lastModified": 1746104585, - "narHash": "sha256-wfrNTYEx5ZfTvUKquiBc+hW44wg3VrPPMcPLnQ0q7bY=", + "lastModified": 1741008028, + "narHash": "sha256-Dypah+fVZ30hCRG96hu1Vmi0DHQSv6XKfy8S6kiS2CQ=", "owner": "daeuniverse", "repo": "flake.nix", - "rev": "44f8089999107b0bfe4b7cf909f56d8da67ec951", + "rev": "2d2ea1661c89efc9c12781572b95f4bb700f2a4a", "type": "github" }, "original": { @@ -352,11 +352,11 @@ "zon2nix": "zon2nix" }, "locked": { - "lastModified": 1746118269, - "narHash": "sha256-nWCxF4Fl53yaJzxlHVDkDZNrWGsrYk9f5ondtMa+S04=", + "lastModified": 1746045191, + "narHash": "sha256-nqwo0TXEwYLTRjbj+akj30SkpXtVozEzaSAIyp41yTA=", "owner": "ghostty-org", "repo": "ghostty", - "rev": "e79bf71f2322fa5d54af07f2985f8460290f2085", + "rev": "2b4f1f8b84ac7960ecd4b9d06bc11cf47f0b9ee9", "type": "github" }, "original": { @@ -441,11 +441,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1746132885, - "narHash": "sha256-naxkk3EcVXP8gPeG/mQq2i37ITvAZs1AKw7K7u5DXuE=", + "lastModified": 1745933300, + "narHash": "sha256-BJpxqZar6vrmv1MtZIjmBa7x+0HEP8kmYeFejz7m2uc=", "owner": "helix-editor", "repo": "helix", - "rev": "aa3fad84ef136b482eb5f84abbf109f25af9700a", + "rev": "1c32fb2d4df3f06f96ca33db7d9f9b15297c7f8d", "type": "github" }, "original": { @@ -462,11 +462,11 @@ ] }, "locked": { - "lastModified": 1746134275, - "narHash": "sha256-sxfY7TIP59o2hcueanoRAtg833PiNroZkQDwlKJxGvs=", + "lastModified": 1746040799, + "narHash": "sha256-osgPX/SzIpkR50vev/rqoTEAVkEcOWXoQXmbzsaI4KU=", "owner": "nix-community", "repo": "home-manager", - "rev": "015f1913109d44c36e683b55f0e47e283b383caa", + "rev": "5f217e5a319f6c186283b530f8c975e66c028433", "type": "github" }, "original": { @@ -486,11 +486,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1746133891, - "narHash": "sha256-ZZVz8ZPa+T9/pKt3khNKZ79dya5qWX1nMhJ1D46vpE8=", + "lastModified": 1746059639, + "narHash": "sha256-Ert1XJsjWZ+aFuH5dLBOZwQGOR+ZAY/f3NnhaNNcGfw=", "owner": "jj-vcs", "repo": "jj", - "rev": "0eceed9832d53b8e870123c88d1c1f0514fb061b", + "rev": "1b300fefa2170bfaf239d1e91c9085b6aa9bbeff", "type": "github" }, "original": { @@ -550,11 +550,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1746142190, - "narHash": "sha256-t36K3TWLMRWoGyjYyo+H8bBquDcp4orZqNZVagWNjwY=", + "lastModified": 1746090057, + "narHash": "sha256-rjwQyWvMtXdE0QWyDOEyH8GYckZxJcu+zIXNclLRUm4=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "af701c1c16c289b1b14f333d844b4f756308d244", + "rev": "a6c4c6ac17e6cd0062ac7c4b73676a90f5600c7b", "type": "github" }, "original": { @@ -583,11 +583,11 @@ "niri-unstable": { "flake": false, "locked": { - "lastModified": 1746124654, - "narHash": "sha256-LmhkAt2KLvf8lp+kEUQuTFmmv7iXO8IkwwSaPasfXJw=", + "lastModified": 1746087578, + "narHash": "sha256-bPmkPoFqt1Fzrjm0YSnA6rYoVTbJvhBv7DRLzyq3Sw0=", "owner": "YaLTeR", "repo": "niri", - "rev": "6c9705dd4b2eaba25f024d1a3efd7943fd393632", + "rev": "68589cd5a1e043e1b49116c2add4a880dce93a3b", "type": "github" }, "original": { @@ -604,11 +604,11 @@ "rust-overlay": "rust-overlay_3" }, "locked": { - "lastModified": 1746109800, - "narHash": "sha256-sjDpqdvbQaiA6OAsgLE4niz6hmmCpoUH0cl5zyfu6FI=", + "lastModified": 1746023382, + "narHash": "sha256-AaT+V44rqEQbXvouwPnU7wJHiLR5Bq8uRvh7f+sOPgQ=", "owner": "lilyinstarlight", "repo": "nixos-cosmic", - "rev": "9fe1aa7b6a1043003b38f36626dd29b52247d720", + "rev": "1d54ddac1e8db612bea4f279a0ea48ab35f420be", "type": "github" }, "original": { @@ -682,11 +682,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1746055187, - "narHash": "sha256-3dqArYSMP9hM7Qpy5YWhnSjiqniSaT2uc5h2Po7tmg0=", + "lastModified": 1745921652, + "narHash": "sha256-hEAvEN+y/OQ7wA7+u3bFJwXSe8yoSf2QaOMH3hyTJTQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3e362ce63e16b9572d8c2297c04f7c19ab6725a5", + "rev": "b000159bba69b0106a42f65e52dbf27f77aca9d3", "type": "github" }, "original": { @@ -698,11 +698,11 @@ }, "nixpkgs-stable_3": { "locked": { - "lastModified": 1746055187, - "narHash": "sha256-3dqArYSMP9hM7Qpy5YWhnSjiqniSaT2uc5h2Po7tmg0=", + "lastModified": 1745921652, + "narHash": "sha256-hEAvEN+y/OQ7wA7+u3bFJwXSe8yoSf2QaOMH3hyTJTQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3e362ce63e16b9572d8c2297c04f7c19ab6725a5", + "rev": "b000159bba69b0106a42f65e52dbf27f77aca9d3", "type": "github" }, "original": { @@ -714,11 +714,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1746064326, - "narHash": "sha256-r7IZkN9NhK/IO9/J6D9ih2P1OXb67nr5HaQ1YAte18w=", + "lastModified": 1745930157, + "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "91bf6dffa21c7709607c9fdbf9a6acb44e7a0a5d", + "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", "type": "github" }, "original": { @@ -754,11 +754,11 @@ "nur-rycee": { "flake": false, "locked": { - "lastModified": 1746158597, - "narHash": "sha256-IugPXmlzFdAMxeqACtd40yLslezVDxUqPvpEn5LWcp4=", + "lastModified": 1746072213, + "narHash": "sha256-ucL/XWOitrhH44UymaGhBYtEsr1DTqb1BDZuVOpGAYc=", "owner": "rycee", "repo": "nur-expressions", - "rev": "47711ca43fc3f91fa566038cd2681812c6c3252d", + "rev": "debaa11dba5904b70a4e9db1d9c68ae9a6f82ebd", "type": "gitlab" }, "original": { @@ -841,11 +841,11 @@ ] }, "locked": { - "lastModified": 1746067100, - "narHash": "sha256-6JeEbboDvRjLwB9kzCnmWj+f+ZnMtKOe5c2F1VBpaTs=", + "lastModified": 1745980514, + "narHash": "sha256-CITAeiuXGjDvT5iZBXr6vKVWQwsUQLJUMFO91bfJFC4=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "026e8fedefd6b167d92ed04b195c658d95ffc7a5", + "rev": "7fbdae44b0f40ea432e46fd152ad8be0f8f41ad6", "type": "github" }, "original": { @@ -902,11 +902,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1746158690, - "narHash": "sha256-Pe2emz36QL8GOILXvvmH/agqkspZFrcOrQxv6uufaEc=", + "lastModified": 1746065148, + "narHash": "sha256-NR8JCOo9BrK0T7iPmNKR+fa/zS+do+GgAMVg4fwMvYM=", "owner": "danth", "repo": "stylix", - "rev": "bc38629511dd9cc78c5ca37a6e546fa66330d50e", + "rev": "b4d3137c5ce960073a991bd99a333cad1b233101", "type": "github" }, "original": { diff --git a/home/david/configurations/Akun/niri.nix b/home/david/configurations/Akun/niri.nix index 02e597f..15f2f61 100644 --- a/home/david/configurations/Akun/niri.nix +++ b/home/david/configurations/Akun/niri.nix @@ -9,7 +9,6 @@ in { (output "eDP-1" [ (leaf "mode" "1920x1200@60.018") (leaf "scale" 1.0) - (flag "focus-at-startup") (leaf "position" { x = 0; y = 0; diff --git a/home/david/configurations/Tytonidae/niri.nix b/home/david/configurations/Tytonidae/niri.nix index dc6c1af..016d986 100644 --- a/home/david/configurations/Tytonidae/niri.nix +++ b/home/david/configurations/Tytonidae/niri.nix @@ -14,7 +14,6 @@ in { y = 0; }) (leaf "transform" "normal") - (flag "focus-at-startup") ]) (output "eDP-1" [ (leaf "mode" "2560x1440@165.003") diff --git a/nixos/configurations/Akun/default.nix b/nixos/configurations/Akun/default.nix index 4989924..6c1788a 100644 --- a/nixos/configurations/Akun/default.nix +++ b/nixos/configurations/Akun/default.nix @@ -1,6 +1,5 @@ {pkgs, ...}: { imports = [ - ./gui.nix ./hardware-configuration.nix ./stylix.nix ./users @@ -22,6 +21,7 @@ kanata.enable = true; tailscale.enable = true; }; + gui.enabled = "niri"; }; programs.gnupg.agent = { enable = true; diff --git a/nixos/configurations/Akun/gui.nix b/nixos/configurations/Akun/gui.nix deleted file mode 100644 index 53a3b5d..0000000 --- a/nixos/configurations/Akun/gui.nix +++ /dev/null @@ -1,20 +0,0 @@ -{...}: let - extraConfig = '' - output "eDP-1" { - mode "1920x1200@60.018" - scale 1.0 - focus-at-startup - position x=0 y=0 - transform "normal" - } - window-rule { - match app-id="apps.regreet" - open-on-output "eDP-1" - } - ''; -in { - youthlic.gui = { - enabled = "niri"; - niri.extraConfig = extraConfig; - }; -} diff --git a/nixos/configurations/Tytonidae/default.nix b/nixos/configurations/Tytonidae/default.nix index f19f633..5bcc8e8 100644 --- a/nixos/configurations/Tytonidae/default.nix +++ b/nixos/configurations/Tytonidae/default.nix @@ -2,7 +2,6 @@ lib, pkgs, inputs, - config, ... }: { imports = @@ -12,7 +11,6 @@ ++ [ ./users ./stylix.nix - ./gui.nix # Include the hardware related config ./hardware-configuration.nix @@ -46,6 +44,7 @@ owncast.enable = true; minio.enable = true; }; + gui.enabled = "niri"; }; # specialisation = { diff --git a/nixos/configurations/Tytonidae/gui.nix b/nixos/configurations/Tytonidae/gui.nix deleted file mode 100644 index fc9c3f0..0000000 --- a/nixos/configurations/Tytonidae/gui.nix +++ /dev/null @@ -1,26 +0,0 @@ -{pkgs, ...}: let - extraConfig = '' - output "DP-1" { - mode "2560x1440@169.900" - scale 1.0 - position x=0 y=0 - transform "normal" - focus-at-startup - } - output "eDP-1" { - mode "2560x1440@165.003" - scale 1.5 - position x=2560 y=0 - transform "normal" - } - window-rule { - match app-id="apps.regreet" - open-on-output "DP-1" - } - ''; -in { - youthlic.gui = { - enabled = "niri"; - niri.extraConfig = extraConfig; - }; -} diff --git a/nixos/modules/gui/niri.nix b/nixos/modules/gui/niri.nix index faeec95..dc42cda 100644 --- a/nixos/modules/gui/niri.nix +++ b/nixos/modules/gui/niri.nix @@ -6,13 +6,6 @@ }: let cfg = config.youthlic.gui; in { - options = { - youthlic.gui.niri = { - extraConfig = lib.mkOption { - type = lib.types.str; - }; - }; - }; config = lib.mkIf (cfg.enabled == "niri") { qt = { enable = true; @@ -68,49 +61,20 @@ in { hardware.bluetooth = { enable = true; }; - services = { - greetd = let - niriConfig = pkgs.writeText "greetd-niri-config.kdl" ('' - binds {} - hotkey-overlay { - skip-at-startup - } - gestures { - hot-corners { - off - } - } - spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" "${config.stylix.image}" - '' - + config.youthlic.gui.niri.extraConfig); - in { - enable = true; - settings = { - default_session = { - command = "env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals ${lib.getExe' config.programs.niri.package "niri"} --config ${niriConfig} -- ${lib.getExe config.programs.regreet.package}"; - }; - }; + services.xserver = { + enable = true; + xkb = { + layout = "cn"; + variant = ""; }; - xserver = { + displayManager.gdm = { enable = true; - xkb = { - layout = "us"; - variant = ""; - }; - # displayManager.gdm = { - # enable = true; - # wayland = true; - # }; + wayland = true; }; }; - programs = { - regreet = { - enable = true; - }; - niri = { - enable = true; - package = pkgs.niri-unstable; - }; + programs.niri = { + enable = true; + package = pkgs.niri-unstable; }; }; }