Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48999b0576
|
||
|
|
b427889b06
|
||
|
|
9b60cdac2c
|
||
|
|
a387a4cd07
|
No files matched your search
Generated
+45
-45
@@ -32,11 +32,11 @@
|
|||||||
"rust-overlay": "rust-overlay_2"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791702392,
|
"lastModified": 1789888081,
|
||||||
"narHash": "sha256-8uWZP3UiJBtYzBzazI18WvlshKYHxPb+8aqm02OxL5M=",
|
"narHash": "sha256-GHz8B3/syibtGpMv344Qe61CRo2lZ7iN2V2hoT7MNRA=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "ee2a27ad749d6d774e26c2be5de5f3a5ecd4a93f",
|
"rev": "d5a38bbc14a79967e3535c3e0951f53d9bf01800",
|
||||||
"revCount": 28,
|
"revCount": 25,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
|
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
|
||||||
},
|
},
|
||||||
@@ -267,11 +267,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792166485,
|
"lastModified": 1790312761,
|
||||||
"narHash": "sha256-TL2RJ56FbBQNi6vsCXAn7QhZECh5DPbvzfiX6v+4r1A=",
|
"narHash": "sha256-Ie5wLHV8N17r8EALzfAsY1Bec6M7gIl+v+FbBmazpkQ=",
|
||||||
"owner": "purpleclay",
|
"owner": "purpleclay",
|
||||||
"repo": "go-overlay",
|
"repo": "go-overlay",
|
||||||
"rev": "5971ffb6c5de960d37f3b85c53cb5a30387cd05a",
|
"rev": "602e108a3c17113c7a19983ff8c9b88a4ab935b6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -290,11 +290,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792166485,
|
"lastModified": 1790312761,
|
||||||
"narHash": "sha256-TL2RJ56FbBQNi6vsCXAn7QhZECh5DPbvzfiX6v+4r1A=",
|
"narHash": "sha256-Ie5wLHV8N17r8EALzfAsY1Bec6M7gIl+v+FbBmazpkQ=",
|
||||||
"owner": "purpleclay",
|
"owner": "purpleclay",
|
||||||
"repo": "go-overlay",
|
"repo": "go-overlay",
|
||||||
"rev": "5971ffb6c5de960d37f3b85c53cb5a30387cd05a",
|
"rev": "602e108a3c17113c7a19983ff8c9b88a4ab935b6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -313,11 +313,11 @@
|
|||||||
"rust-overlay": "rust-overlay_3"
|
"rust-overlay": "rust-overlay_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791702441,
|
"lastModified": 1789887932,
|
||||||
"narHash": "sha256-qHf8tVIYu6OE1PKcthmpBgblg27u3bU7v4TVqy0B3jg=",
|
"narHash": "sha256-ryX9MgESeWwjpFMgxlaF97FgtaRyfIELgFLEeUR8xLQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "2c2e99f6347e9be744a72f7df6043015989d6cd7",
|
"rev": "70288a728cc39eb5f390f71ae24d4a58763216b1",
|
||||||
"revCount": 17,
|
"revCount": 14,
|
||||||
"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": 1792274446,
|
"lastModified": 1790215976,
|
||||||
"narHash": "sha256-AM1HmBeDnB2B3dSiXuCYeu7Me+lHNpz/P39lVxGJBuQ=",
|
"narHash": "sha256-VkR1rMGyjU9jtw8ISFx5uqR9e+LEaOlhHwrseFkiIVk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ab3823b4b24c0c3ca984c1f3ee577fd6d667424c",
|
"rev": "a6631107a83ceab5872f298a2ea710859c80c4cb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -355,11 +355,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792098797,
|
"lastModified": 1790365885,
|
||||||
"narHash": "sha256-u4DIIZgznEGzByxXrxWCXK19VcMtTBmi/M9gZ7Jk9bM=",
|
"narHash": "sha256-iQ0ebhiVo64NktTnwft9hNxlFu4j5cvljVxyJaEVIP4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "640725978b99076e18e069f6e7d2959124584f8f",
|
"rev": "7b4c5ec4bedaf1e062bbc1bcaeddbc6bd242aa1b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -417,11 +417,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792030654,
|
"lastModified": 1790450978,
|
||||||
"narHash": "sha256-OaQwAtPMTjQiY2sT/2/62UbSPhzP/0aDnWzMm/NCiUw=",
|
"narHash": "sha256-/eLCD/X9kaWJqPR47+fDozEC87Hjmm3i8gJbYmDAD7g=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "26f4107e47e3ad0ffd0db220469ba83b6f6d96e8",
|
"rev": "5e2305d577ca00acbba631b05cb1094d172b29f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -433,11 +433,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792030654,
|
"lastModified": 1790450978,
|
||||||
"narHash": "sha256-OaQwAtPMTjQiY2sT/2/62UbSPhzP/0aDnWzMm/NCiUw=",
|
"narHash": "sha256-/eLCD/X9kaWJqPR47+fDozEC87Hjmm3i8gJbYmDAD7g=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "26f4107e47e3ad0ffd0db220469ba83b6f6d96e8",
|
"rev": "5e2305d577ca00acbba631b05cb1094d172b29f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -487,11 +487,11 @@
|
|||||||
"rust-overlay": "rust-overlay_4"
|
"rust-overlay": "rust-overlay_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792344577,
|
"lastModified": 1790492743,
|
||||||
"narHash": "sha256-Sbd2veIdg9iDiwwDeEKIiuk8FYMtjBXWvDlrrM0FjVA=",
|
"narHash": "sha256-z9zSi95pcqk2zmjq5XKw2kSAAiCLcAM3hxH8EukGKTw=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "2debafc63297a24d2ca5c749b0d3f6bdbf6324cb",
|
"rev": "b1f009b0b557c4178600bc18fd495f0a8d54c35e",
|
||||||
"revCount": 113,
|
"revCount": 103,
|
||||||
"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": 1792175215,
|
"lastModified": 1790221470,
|
||||||
"narHash": "sha256-XD64JVLV8iE4lR+W5gkTweEaT+SBwOrSy0+le2WgITI=",
|
"narHash": "sha256-TzyWd4i7YCpqoF9xB8mfgDJ2sviAZysKH9R8YbQGjqA=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "a736b60b1e2019931168979951c94dc46e342957",
|
"rev": "95afe7a794216f53e217c5148c6fbe0b668192cf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -563,11 +563,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791620365,
|
"lastModified": 1789802016,
|
||||||
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
|
"narHash": "sha256-QVFfArbYaQMGK4dFV+5RUL72Ci+hNHVhaF/R9qJfDhs=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
|
"rev": "26a71e661c47bd21a05d06fec749f3f7c75e9d12",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -585,11 +585,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1791620365,
|
"lastModified": 1789802016,
|
||||||
"narHash": "sha256-CVZXIDNw7HEwyD8X6q9Ln370Sc0ZqRlTzDRwOZ1hJMY=",
|
"narHash": "sha256-QVFfArbYaQMGK4dFV+5RUL72Ci+hNHVhaF/R9qJfDhs=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "e90fafa71b440fabcd52dd7fb017ab2da81c781a",
|
"rev": "26a71e661c47bd21a05d06fec749f3f7c75e9d12",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -606,11 +606,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792219666,
|
"lastModified": 1790407471,
|
||||||
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
|
"narHash": "sha256-M8elY2UShg4ZuLTiRLEHO+ae5xQFp3/ReQdxp/R+1UU=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
|
"rev": "4e9bb05a9ab6c37dc74c22974ebed6e36dc73eb2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -624,11 +624,11 @@
|
|||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792307278,
|
"lastModified": 1790407471,
|
||||||
"narHash": "sha256-wJgFFtw/vlzsjWrQFmTn40TTkSkqHM4XXN0nh4q4uMk=",
|
"narHash": "sha256-M8elY2UShg4ZuLTiRLEHO+ae5xQFp3/ReQdxp/R+1UU=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "42076d1c6a0fb405ed04f9a674e4a8f69de62ba3",
|
"rev": "4e9bb05a9ab6c37dc74c22974ebed6e36dc73eb2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{ 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
|
||||||
@@ -31,19 +30,6 @@ 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;
|
||||||
|
|||||||
+2
-8
@@ -66,14 +66,8 @@
|
|||||||
"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 = true;
|
systemd.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Whitespace-only changes.
@@ -0,0 +1,178 @@
|
|||||||
|
{
|
||||||
|
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;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
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,6 +22,7 @@ in {
|
|||||||
})
|
})
|
||||||
../../apps/gaming.nix
|
../../apps/gaming.nix
|
||||||
../../apps/appimage.nix
|
../../apps/appimage.nix
|
||||||
|
../../desktop
|
||||||
../../graphics
|
../../graphics
|
||||||
../../pwrMgmt
|
../../pwrMgmt
|
||||||
../../networking/core.nix
|
../../networking/core.nix
|
||||||
@@ -74,7 +75,6 @@ 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,6 +89,10 @@ 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;
|
||||||
@@ -151,10 +155,7 @@ in {
|
|||||||
|
|
||||||
# Core networking module (see ../../networking/core.nix)
|
# Core networking module (see ../../networking/core.nix)
|
||||||
network = {
|
network = {
|
||||||
firewall = {
|
firewall.enable = true;
|
||||||
enable = true;
|
|
||||||
firewalld.enable = true;
|
|
||||||
};
|
|
||||||
networkManager.enable = true;
|
networkManager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -192,27 +193,6 @@ 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;
|
||||||
|
|||||||
@@ -8,12 +8,6 @@ in {
|
|||||||
options.network = {
|
options.network = {
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = lib.mkEnableOption "system firewall";
|
enable = lib.mkEnableOption "system firewall";
|
||||||
firewalld.enable = lib.mkEnableOption "firewalld with its nftables backend";
|
|
||||||
nftables.extraConfig = lib.mkOption {
|
|
||||||
type = lib.types.lines;
|
|
||||||
default = "";
|
|
||||||
description = "Rules inside a separate inet nftables table alongside firewalld";
|
|
||||||
};
|
|
||||||
tcpPorts = {
|
tcpPorts = {
|
||||||
ssh.enable = lib.mkEnableOption "SSH service port (22)";
|
ssh.enable = lib.mkEnableOption "SSH service port (22)";
|
||||||
web.enable = lib.mkEnableOption "common web service ports (80, 443)";
|
web.enable = lib.mkEnableOption "common web service ports (80, 443)";
|
||||||
@@ -48,21 +42,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
assertions = [
|
|
||||||
{
|
|
||||||
assertion = cfg.firewall.nftables.extraConfig == "" || cfg.firewall.firewalld.enable;
|
|
||||||
message = "network.firewall.nftables.extraConfig requires network.firewall.firewalld.enable";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
services.firewalld.enable = cfg.firewall.firewalld.enable;
|
|
||||||
networking.nftables = lib.mkIf cfg.firewall.firewalld.enable {
|
|
||||||
enable = true;
|
|
||||||
flushRuleset = false;
|
|
||||||
tables."local-extra" = lib.mkIf (cfg.firewall.nftables.extraConfig != "") {
|
|
||||||
family = "inet";
|
|
||||||
content = cfg.firewall.nftables.extraConfig;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = cfg.firewall.enable;
|
enable = cfg.firewall.enable;
|
||||||
allowedTCPPorts = lib.flatten [
|
allowedTCPPorts = lib.flatten [
|
||||||
|
|||||||
Reference in new issue
Block a user