Compare commits
11
Commits
b427889b06
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4965e9ed1d | ||
|
|
b42f545195
|
||
|
|
b27fa2440e | ||
|
|
6ae398abdc | ||
|
|
57490387aa | ||
|
|
b76df1881b | ||
|
|
3fa4fb8ef7 | ||
|
|
bf799ca883 | ||
|
|
828154845b
|
||
|
|
880d1508cc
|
||
|
|
c75ecae2dc |
No files matched your search
Generated
+58
-58
@@ -9,11 +9,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789138122,
|
"lastModified": 1792853286,
|
||||||
"narHash": "sha256-mh+ZiGCtHAo0xIi1yaNjHsftfnlWz9JiYwHCyT16yIE=",
|
"narHash": "sha256-l/Oh5k1NQqQuwh4gBF3VcmCF0WGiCT/LqfvY5huhOq4=",
|
||||||
"owner": "ezKEa",
|
"owner": "ezKEa",
|
||||||
"repo": "aagl-gtk-on-nix",
|
"repo": "aagl-gtk-on-nix",
|
||||||
"rev": "d82d6d6f66caf4b63fb154e62fad83c627874127",
|
"rev": "e9a3b8fdb50a7d77a90c02c84e298c286310385b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -32,11 +32,11 @@
|
|||||||
"rust-overlay": "rust-overlay_2"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789283312,
|
"lastModified": 1791702392,
|
||||||
"narHash": "sha256-Sv/2AyUTydH5d4eNk/ej1lHD1rpDvNjiB5Y3hmg/EGk=",
|
"narHash": "sha256-8uWZP3UiJBtYzBzazI18WvlshKYHxPb+8aqm02OxL5M=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "31673a5c64497a0f40487d51820d3738dec13d60",
|
"rev": "ee2a27ad749d6d774e26c2be5de5f3a5ecd4a93f",
|
||||||
"revCount": 24,
|
"revCount": 28,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
|
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
|
||||||
},
|
},
|
||||||
@@ -52,11 +52,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1783744694,
|
"lastModified": 1792800221,
|
||||||
"narHash": "sha256-2cp6N3rrwnGYLTx9l6N+NI+kwrCWxvJUbj5WJhvB29A=",
|
"narHash": "sha256-53jIZEWNh96irEXhsMZFoNhLJgGSU3nYl1i4wFQHAsU=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "c3e90c89649b07d1a96e4b9dd6cd0d6e44b91a74",
|
"rev": "d31953cf55f9027a56e9be938daf5db8c5655663",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -267,11 +267,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789623807,
|
"lastModified": 1792644631,
|
||||||
"narHash": "sha256-pqmP+T+fR2+MDen+ro2iF7mdH7S83AUuvNZwVDl3jUk=",
|
"narHash": "sha256-3aILZu5bQ+6khPvGCdIbC7wBFZOgPbpP0TBSL9tf89E=",
|
||||||
"owner": "purpleclay",
|
"owner": "purpleclay",
|
||||||
"repo": "go-overlay",
|
"repo": "go-overlay",
|
||||||
"rev": "b19679b19d64dc29b96caf07e3282c250611ac57",
|
"rev": "ff2b494b477eb4349dd40f0564cedab552f9804d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -290,11 +290,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789623807,
|
"lastModified": 1792166485,
|
||||||
"narHash": "sha256-pqmP+T+fR2+MDen+ro2iF7mdH7S83AUuvNZwVDl3jUk=",
|
"narHash": "sha256-TL2RJ56FbBQNi6vsCXAn7QhZECh5DPbvzfiX6v+4r1A=",
|
||||||
"owner": "purpleclay",
|
"owner": "purpleclay",
|
||||||
"repo": "go-overlay",
|
"repo": "go-overlay",
|
||||||
"rev": "b19679b19d64dc29b96caf07e3282c250611ac57",
|
"rev": "5971ffb6c5de960d37f3b85c53cb5a30387cd05a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -313,11 +313,11 @@
|
|||||||
"rust-overlay": "rust-overlay_3"
|
"rust-overlay": "rust-overlay_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789887932,
|
"lastModified": 1791702441,
|
||||||
"narHash": "sha256-ryX9MgESeWwjpFMgxlaF97FgtaRyfIELgFLEeUR8xLQ=",
|
"narHash": "sha256-qHf8tVIYu6OE1PKcthmpBgblg27u3bU7v4TVqy0B3jg=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "70288a728cc39eb5f390f71ae24d4a58763216b1",
|
"rev": "2c2e99f6347e9be744a72f7df6043015989d6cd7",
|
||||||
"revCount": 14,
|
"revCount": 17,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/hildibrand.git"
|
"url": "https://scm.wyattjmiller.com/wymiller/hildibrand.git"
|
||||||
},
|
},
|
||||||
@@ -333,11 +333,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789267039,
|
"lastModified": 1792818383,
|
||||||
"narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=",
|
"narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ec172013fa62135f58fb58dd17ae9651e8f39727",
|
"rev": "24f2190587513b9c2f73db112a17844ae912d965",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -355,11 +355,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789867870,
|
"lastModified": 1792098797,
|
||||||
"narHash": "sha256-sOag/7DTqw4tXLI7UxjrZxPGV+dlTe6zFtJn0VSkgFM=",
|
"narHash": "sha256-u4DIIZgznEGzByxXrxWCXK19VcMtTBmi/M9gZ7Jk9bM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "d2a22a3659a6ae99847ea9176114f6957b8ac62e",
|
"rev": "640725978b99076e18e069f6e7d2959124584f8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -370,11 +370,11 @@
|
|||||||
},
|
},
|
||||||
"mnw": {
|
"mnw": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780772958,
|
"lastModified": 1784154424,
|
||||||
"narHash": "sha256-VKKe8r4pwCGWZ3Yr9CPN129R4S3CKLSrlYqdYz3vKpM=",
|
"narHash": "sha256-HRn4O1X2ShYtbq5Egji72/aemyc2cIQicjRZD9hBqM8=",
|
||||||
"owner": "Gerg-L",
|
"owner": "Gerg-L",
|
||||||
"repo": "mnw",
|
"repo": "mnw",
|
||||||
"rev": "0871dbf63a53610c95db04439ed8ea4d6ec9c160",
|
"rev": "0151d9fa87992cbeb67c86616fb9170dcec830b6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -417,11 +417,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789749394,
|
"lastModified": 1792615934,
|
||||||
"narHash": "sha256-cFTsMQz8Hzn8MT49oaeLSHg62tE86NykugCWkeM2ypk=",
|
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cf9d2fb3e50fa1cd5114c47505ea9177f7ff5f49",
|
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -433,11 +433,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789749394,
|
"lastModified": 1792030654,
|
||||||
"narHash": "sha256-cFTsMQz8Hzn8MT49oaeLSHg62tE86NykugCWkeM2ypk=",
|
"narHash": "sha256-OaQwAtPMTjQiY2sT/2/62UbSPhzP/0aDnWzMm/NCiUw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cf9d2fb3e50fa1cd5114c47505ea9177f7ff5f49",
|
"rev": "26f4107e47e3ad0ffd0db220469ba83b6f6d96e8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -449,11 +449,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787498568,
|
"lastModified": 1790046670,
|
||||||
"narHash": "sha256-FoOSoBG7tEvOlGRTpWnVdY506Ner4y7r7UYO3OGgmE8=",
|
"narHash": "sha256-OJe62m8gZx4xEAQnMcqH1u31/uu4Xf0q2ykAEHZfgrg=",
|
||||||
"rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188",
|
"rev": "6774f7bc253789b113a4f39285dc0fa100abeacc",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1060451.56c02bc00adc/nixexprs.tar.xz"
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1077996.6774f7bc2537/nixexprs.tar.xz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
@@ -487,11 +487,11 @@
|
|||||||
"rust-overlay": "rust-overlay_4"
|
"rust-overlay": "rust-overlay_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789887979,
|
"lastModified": 1792639431,
|
||||||
"narHash": "sha256-ln0cOIfvEFNd4IdVbiYfdtxS01E5npnstm0YCTOxpJY=",
|
"narHash": "sha256-ZFh9vzagl6LegBH4gjIvEWIvNuZGEqOQX0LiAwt9DA8=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "39c33599b191ae2d595b3cc38e8ad4bf2766cd89",
|
"rev": "ce646a959820bed061d173e7631cd13d39edd532",
|
||||||
"revCount": 99,
|
"revCount": 118,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/nur.git"
|
"url": "https://scm.wyattjmiller.com/wymiller/nur.git"
|
||||||
},
|
},
|
||||||
@@ -507,11 +507,11 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789854559,
|
"lastModified": 1792889789,
|
||||||
"narHash": "sha256-6GDssza3F+ukpUujSuTL50vW5AHaoG+4vjsDgWqRyeQ=",
|
"narHash": "sha256-xpH3z+T5NELixXRjxGJ3mx30kz63Xt2B0ZfPWl7hcUg=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "85bf39cd0409ad8a7fa5b3ad0d29e89e9da97a0e",
|
"rev": "557d2eb05a76e5939e6a75351343cae5731a71f8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -563,11 +563,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789196581,
|
"lastModified": 1791620365,
|
||||||
"narHash": "sha256-yJr1Bt4fKkKIpPYbsKGqJ0VFdoDnURgRwuffmBQ2WzY=",
|
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "228ecefb6329d5a531b77b46b581a2f0c26ee056",
|
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -585,11 +585,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789802016,
|
"lastModified": 1791620365,
|
||||||
"narHash": "sha256-QVFfArbYaQMGK4dFV+5RUL72Ci+hNHVhaF/R9qJfDhs=",
|
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "26a71e661c47bd21a05d06fec749f3f7c75e9d12",
|
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -606,11 +606,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789802016,
|
"lastModified": 1792219666,
|
||||||
"narHash": "sha256-QVFfArbYaQMGK4dFV+5RUL72Ci+hNHVhaF/R9qJfDhs=",
|
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "26a71e661c47bd21a05d06fec749f3f7c75e9d12",
|
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -624,11 +624,11 @@
|
|||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789802016,
|
"lastModified": 1792825530,
|
||||||
"narHash": "sha256-QVFfArbYaQMGK4dFV+5RUL72Ci+hNHVhaF/R9qJfDhs=",
|
"narHash": "sha256-aphXA2IFNd3q48++TKmfuuvDDjkrgGdJDnDIhij9684=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "26a71e661c47bd21a05d06fec749f3f7c75e9d12",
|
"rev": "5b9f1198b59bcb31c5c3250b332e7d77590e6306",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, pkgs
|
, pkgs
|
||||||
, userName
|
, userName
|
||||||
|
, isNixOS ? true
|
||||||
, ...
|
, ...
|
||||||
}: let
|
}: let
|
||||||
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
||||||
@@ -30,6 +31,19 @@ in
|
|||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(lib.mkIf isNixOS {
|
||||||
|
sessionVariables = {
|
||||||
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
|
XDG_SESSION_TYPE = "wayland";
|
||||||
|
XDG_SESSION_DESKTOP = "sway";
|
||||||
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
(lib.mkIf pkgs.stdenv.isLinux {
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
lsp.servers = [ "typescript-language-server" "deno" ];
|
lsp.servers = [ "typescript-language-server" "deno" ];
|
||||||
};
|
};
|
||||||
|
csharp.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
utility.surround.enable = true;
|
utility.surround.enable = true;
|
||||||
|
|||||||
+8
-2
@@ -66,8 +66,14 @@
|
|||||||
"The gods themselves will be my meal. Your dear companions my dessert. Upon this world I'll feast, and death shall follow in my wake. All your hate, all your rage, you will render unto me." \
|
"The gods themselves will be my meal. Your dear companions my dessert. Upon this world I'll feast, and death shall follow in my wake. All your hate, all your rage, you will render unto me." \
|
||||||
"Boring, boring, boring" \
|
"Boring, boring, boring" \
|
||||||
"Would you be 'happier' had I a 'good reason'?" \
|
"Would you be 'happier' had I a 'good reason'?" \
|
||||||
"A test of your reflexes!"
|
"A test of your reflexes!" \
|
||||||
|
"Yer a wizard, Wyatt" \
|
||||||
|
"Yer a lizard, Wyatt" \
|
||||||
|
"Po-Tay-To boil em mash em stick em in a stew" \
|
||||||
|
"Oh look it's the cutie patootie potato!" \
|
||||||
|
"What a charming young man" \
|
||||||
|
"Wyatt, you are smart, kind, and resilient. I believe in you no matter what life throws at you! Kick this project's butt!! - Nico" \
|
||||||
|
"Ganbatte!"
|
||||||
|
|
||||||
set choose_meme (random)"%"(count $memes)
|
set choose_meme (random)"%"(count $memes)
|
||||||
set choose_meme $memes[(math $choose_meme"+1")]
|
set choose_meme $memes[(math $choose_meme"+1")]
|
||||||
|
|||||||
+1
-1
@@ -153,6 +153,6 @@ in {
|
|||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
systemd.enable = false;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Whitespace-only changes.
@@ -1,178 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.desktop;
|
|
||||||
|
|
||||||
defaultWaylandPackages = with pkgs; [
|
|
||||||
brightnessctl
|
|
||||||
cliphist
|
|
||||||
foot
|
|
||||||
grim
|
|
||||||
libnotify
|
|
||||||
mako
|
|
||||||
networkmanagerapplet
|
|
||||||
playerctl
|
|
||||||
polkit_gnome
|
|
||||||
pavucontrol
|
|
||||||
rofi
|
|
||||||
slurp
|
|
||||||
waybar
|
|
||||||
wl-clipboard
|
|
||||||
xdg-utils
|
|
||||||
];
|
|
||||||
|
|
||||||
defaultSwayPackages =
|
|
||||||
defaultWaylandPackages
|
|
||||||
++ (with pkgs; [
|
|
||||||
pulseaudio
|
|
||||||
swayidle
|
|
||||||
swaylock
|
|
||||||
wmenu
|
|
||||||
]);
|
|
||||||
|
|
||||||
resolvedDisplayManager =
|
|
||||||
if cfg.displayManager != "auto"
|
|
||||||
then cfg.displayManager
|
|
||||||
else if cfg.gnome.enable
|
|
||||||
then "gdm"
|
|
||||||
else if cfg.xfce.enable
|
|
||||||
then "lightdm"
|
|
||||||
else "none";
|
|
||||||
in {
|
|
||||||
imports = [./xdg.nix];
|
|
||||||
|
|
||||||
options.desktop = {
|
|
||||||
displayManager = lib.mkOption {
|
|
||||||
type = lib.types.enum ["auto" "none" "gdm" "lightdm" "ly"];
|
|
||||||
default = "auto";
|
|
||||||
description = ''
|
|
||||||
Display manager to enable. In auto mode, GDM is used when GNOME is
|
|
||||||
enabled, LightDM is used when XFCE is enabled, and no display manager
|
|
||||||
is enabled for compositor-only configurations.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
gnome.enable = lib.mkEnableOption "the vanilla GNOME desktop environment";
|
|
||||||
|
|
||||||
xfce.enable = lib.mkEnableOption "the vanilla XFCE desktop environment";
|
|
||||||
|
|
||||||
sway = {
|
|
||||||
enable = lib.mkEnableOption "the Sway Wayland compositor";
|
|
||||||
|
|
||||||
extraPackages = lib.mkOption {
|
|
||||||
type = with lib.types; listOf package;
|
|
||||||
default = defaultSwayPackages;
|
|
||||||
defaultText = lib.literalExpression ''
|
|
||||||
with pkgs; [
|
|
||||||
brightnessctl
|
|
||||||
cliphist
|
|
||||||
foot
|
|
||||||
grim
|
|
||||||
libnotify
|
|
||||||
mako
|
|
||||||
networkmanagerapplet
|
|
||||||
playerctl
|
|
||||||
polkit_gnome
|
|
||||||
pulseaudio
|
|
||||||
pavucontrol
|
|
||||||
rofi
|
|
||||||
slurp
|
|
||||||
swayidle
|
|
||||||
swaylock
|
|
||||||
waybar
|
|
||||||
wl-clipboard
|
|
||||||
wmenu
|
|
||||||
xdg-utils
|
|
||||||
]
|
|
||||||
'';
|
|
||||||
description = "Packages installed alongside Sway.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprland = {
|
|
||||||
enable = lib.mkEnableOption "the Hyprland Wayland compositor";
|
|
||||||
|
|
||||||
extraPackages = lib.mkOption {
|
|
||||||
type = with lib.types; listOf package;
|
|
||||||
default = defaultWaylandPackages;
|
|
||||||
defaultText = lib.literalExpression ''
|
|
||||||
with pkgs; [
|
|
||||||
brightnessctl
|
|
||||||
cliphist
|
|
||||||
foot
|
|
||||||
grim
|
|
||||||
libnotify
|
|
||||||
mako
|
|
||||||
networkmanagerapplet
|
|
||||||
playerctl
|
|
||||||
polkit_gnome
|
|
||||||
pavucontrol
|
|
||||||
rofi
|
|
||||||
slurp
|
|
||||||
waybar
|
|
||||||
wl-clipboard
|
|
||||||
xdg-utils
|
|
||||||
]
|
|
||||||
'';
|
|
||||||
description = ''
|
|
||||||
Packages installed alongside Hyprland. Hyprlock and Hypridle are
|
|
||||||
enabled separately so their NixOS integration, including PAM, is
|
|
||||||
configured as well.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.gnome.enable {
|
|
||||||
services.desktopManager.gnome.enable = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.xfce.enable {
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
desktopManager.xfce.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.sway.enable {
|
|
||||||
programs.sway = {
|
|
||||||
enable = true;
|
|
||||||
wrapperFeatures.gtk = true;
|
|
||||||
extraPackages = cfg.sway.extraPackages;
|
|
||||||
extraSessionCommands = ''
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
export XDG_SESSION_DESKTOP=sway
|
|
||||||
export NIXOS_OZONE_WL=1
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.hyprland.enable {
|
|
||||||
programs = {
|
|
||||||
hyprland.enable = true;
|
|
||||||
hyprlock.enable = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = cfg.hyprland.extraPackages;
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (resolvedDisplayManager == "gdm") {
|
|
||||||
services.displayManager.gdm.enable = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (resolvedDisplayManager == "lightdm") {
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.lightdm.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (resolvedDisplayManager == "ly") {
|
|
||||||
services.displayManager.ly.enable = true;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.desktop;
|
|
||||||
needsGtkPortal = cfg.xfce.enable || cfg.hyprland.enable;
|
|
||||||
usesPortal = cfg.gnome.enable || cfg.xfce.enable || cfg.sway.enable || cfg.hyprland.enable;
|
|
||||||
in {
|
|
||||||
config = lib.mkMerge [
|
|
||||||
# GNOME and Sway configure their own portals in NixOS. XFCE needs a
|
|
||||||
# portal; Hyprland benefits from GTK as a fallback to its native one.
|
|
||||||
(lib.mkIf needsGtkPortal {
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (cfg.sway.enable || needsGtkPortal) {
|
|
||||||
xdg.portal.config.common.default = ["gtk"];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (usesPortal && config.services.gnome.gnome-keyring.enable) {
|
|
||||||
xdg.portal.config.common."org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf (cfg.sway.enable && config.services.gnome.gnome-keyring.enable) {
|
|
||||||
xdg.portal.config.sway."org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
|
||||||
})
|
|
||||||
|
|
||||||
# A per-desktop config takes precedence over Hyprland's packaged config,
|
|
||||||
# so include its native portal whenever adding a Secret preference.
|
|
||||||
(lib.mkIf (cfg.hyprland.enable && config.services.gnome.gnome-keyring.enable) {
|
|
||||||
xdg.portal.config.hyprland = {
|
|
||||||
default = ["hyprland" "gtk"];
|
|
||||||
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,6 @@ in {
|
|||||||
})
|
})
|
||||||
../../apps/gaming.nix
|
../../apps/gaming.nix
|
||||||
../../apps/appimage.nix
|
../../apps/appimage.nix
|
||||||
../../desktop
|
|
||||||
../../graphics
|
../../graphics
|
||||||
../../pwrMgmt
|
../../pwrMgmt
|
||||||
../../networking/core.nix
|
../../networking/core.nix
|
||||||
@@ -75,6 +74,7 @@ in {
|
|||||||
brightnessctl
|
brightnessctl
|
||||||
wttrbar
|
wttrbar
|
||||||
cliphist
|
cliphist
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
xdg-utils
|
xdg-utils
|
||||||
flatpak-xdg-utils
|
flatpak-xdg-utils
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
@@ -89,10 +89,6 @@ in {
|
|||||||
# Enable Polkit
|
# Enable Polkit
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
# Enable desktop support (sway)
|
|
||||||
desktop.sway.enable = true;
|
|
||||||
desktop.displayManager = "ly";
|
|
||||||
|
|
||||||
# Graphics module (../../graphics/default.nix)
|
# Graphics module (../../graphics/default.nix)
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -193,6 +189,27 @@ in {
|
|||||||
# AppImage support
|
# AppImage support
|
||||||
appimage.enable = true;
|
appimage.enable = true;
|
||||||
|
|
||||||
|
# XDG stuff
|
||||||
|
xdg = {
|
||||||
|
portal = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
sway = {
|
||||||
|
default = ["wlr" "gtk"];
|
||||||
|
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
||||||
|
};
|
||||||
|
common = {
|
||||||
|
default = ["gtk"];
|
||||||
|
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# sched_ext userspace CPU scheduling stuff - idk
|
# sched_ext userspace CPU scheduling stuff - idk
|
||||||
services.scx = {
|
services.scx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in new issue
Block a user