feat(xfce): add

This commit is contained in:
Kat Inskip 2024-04-06 11:21:36 -07:00
parent d37bd2c669
commit 4932e4fd0d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
34 changed files with 490 additions and 203 deletions

152
flake.lock generated
View file

@ -3,11 +3,11 @@
"arcexprs": { "arcexprs": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1706385294, "lastModified": 1712091889,
"narHash": "sha256-mGqas+TDp2DtR7ufx10SDlKnL+aRZ/jhbkGYlF8NLO4=", "narHash": "sha256-u9zDQaf3n3D4O8xBbvLm1DzlFjrmUHkQ241oAjucx5I=",
"owner": "arcnmx", "owner": "arcnmx",
"repo": "nixexprs", "repo": "nixexprs",
"rev": "aa081527557408f1fb5dca56a19f817cd3577b47", "rev": "f2c2012ce5f2b8f5d3c123a0978a056809bb4734",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -129,11 +129,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1706833576, "lastModified": 1711763326,
"narHash": "sha256-w7BL0EWRts+nD1lbLECIuz6fRzmmV+z8oWwoY7womR0=", "narHash": "sha256-sXcesZWKXFlEQ8oyGHnfk4xc9f2Ip0X/+YZOq3sKviI=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "bdbae6ecff8fcc322bf6b9053c0b984912378af7", "rev": "36524adc31566655f2f4d55ad6b875fb5c1a4083",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -156,11 +156,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1704875591, "lastModified": 1711973905,
"narHash": "sha256-eWRLbqRcrILgztU/m/k7CYLzETKNbv0OsT2GjkaNm8A=", "narHash": "sha256-UFKME/N1pbUtn+2Aqnk+agUt8CekbpuqwzljivfIme8=",
"owner": "serokell", "owner": "serokell",
"repo": "deploy-rs", "repo": "deploy-rs",
"rev": "1776009f1f3fb2b5d236b84d9815f2edee463a9b", "rev": "88b3059b020da69cbe16526b8d639bd5e0b51c8b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -308,11 +308,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1707114923, "lastModified": 1712390667,
"narHash": "sha256-LDYPWa+BgxHSNEye93SyIPgz5u3RAfh78P9KyO+rQzI=", "narHash": "sha256-ebq+fJZfobqpsAdGDGpxNWSySbQejRwW9cdiil6krCo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "afcedcf2c8e424d0465e823cf833eb3adebe1db7", "rev": "b787726a8413e11b074cde42704b4af32d95545c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -322,6 +322,35 @@
"type": "github" "type": "github"
} }
}, },
"hyprcursor": {
"inputs": {
"hyprlang": [
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1712339458,
"narHash": "sha256-j8pv3tL2EFLGuvFoO64dHWD8YzNvD77hRb4EEx5ADgE=",
"owner": "hyprwm",
"repo": "hyprcursor",
"rev": "981b6617822dadc40246a6c70194d02dfc12e4c6",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprcursor",
"type": "github"
}
},
"hypridle": { "hypridle": {
"inputs": { "inputs": {
"hyprlang": [ "hyprlang": [
@ -335,11 +364,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709223573, "lastModified": 1710180874,
"narHash": "sha256-xi7yscjt7t8tFcJDgHzxgW15Obcp7dEghG41f6tUmRc=", "narHash": "sha256-ZSn3wXQuRz36Ta/L+UCFKuUVG6QpwK2QmRkPjpQprU4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hypridle", "repo": "hypridle",
"rev": "029f08805a2297966d295a52a6e62c3801926a52", "rev": "4395339a2dc410bcf49f3e24f9ed3024fdb25b0a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -350,6 +379,7 @@
}, },
"hyprland": { "hyprland": {
"inputs": { "inputs": {
"hyprcursor": "hyprcursor",
"hyprland-protocols": [ "hyprland-protocols": [
"hyprland-protocols" "hyprland-protocols"
], ],
@ -368,11 +398,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1708452876, "lastModified": 1712420323,
"narHash": "sha256-UrFrNfIwd0pcCTZYc6RAppzvpL6icfhelFMgufY5vxU=", "narHash": "sha256-2isV2NOIm+EKQej7RNyFxtW5gdxDGoI9YkBYczxscF8=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "13d985489788fa5349b3457d6eb1c19bad8f37e9", "rev": "265c7924d85e2ad5f2ff0e9f59c03403028eaef4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -414,11 +444,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709914708, "lastModified": 1711671891,
"narHash": "sha256-bR4o3mynoTa1Wi4ZTjbnsZ6iqVcPGriXp56bZh5UFTk=", "narHash": "sha256-C/Wwsy/RLxHP1axFFl+AnwJRWfd8gxDKKoa8nt8Qk3c=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlang", "repo": "hyprlang",
"rev": "a685493fdbeec01ca8ccdf1f3655c044a8ce2fe2", "rev": "c1402612146ba06606ebf64963a02bc1efe11e74",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -440,11 +470,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710002782, "lastModified": 1711884603,
"narHash": "sha256-njx7ZjsIaOo+l9vF2FNtF1nvckHK/8gcqpN3EYitIoY=", "narHash": "sha256-y1Om75muuJcEoLd/FOYGIZ5/ja/Mc4iBX/9S7vWF0C8=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlock", "repo": "hyprlock",
"rev": "160fe3553fae1c2fb5f3480bada708bff9405e0b", "rev": "071ebcefb9070e4397d75103f5f535b58dacf250",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -487,11 +517,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710095677, "lastModified": 1712427525,
"narHash": "sha256-M1FyL+mCy0dyVfBi2qft3rcqU5NJh2BOQMwJdP2SDek=", "narHash": "sha256-AC9iR6PdtG9v/gHSXxiEAUAIGErkzTNAKwCE3V110xs=",
"owner": "kittywitch", "owner": "kittywitch",
"repo": "konawall-py", "repo": "konawall-py",
"rev": "e9eb56126b1c77f2799b1da2a94afc468a1aafec", "rev": "2ab1de269d735822ab0f4c6c897dafa630fa0a94",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -570,11 +600,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1706922828, "lastModified": 1712366100,
"narHash": "sha256-LW/is1Y4nzzcuKDh2qTySvEaVGy6wqOflSDcHZDg6H4=", "narHash": "sha256-JHNo5nvz5Rk9u+nrkbCSCZqAeBo0yVe4lEYz7m40xV0=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "ccb58cd173960992558b6127b423621090866b45", "rev": "2f2d1ab110ca24f3d926e9a2aa9f4706a98ce711",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -590,11 +620,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1707016097, "lastModified": 1711854532,
"narHash": "sha256-V4lHr6hFQ3rK650dh64Xffxsf4kse9vUYWsM+ldjkco=", "narHash": "sha256-JPStavwlT7TfxxiXHk6Q7sbNxtnXAIjXQJMLO0KB6M0=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "3e3dad2808379c522138e2e8b0eb73500721a237", "rev": "2844b5f3ad3b478468151bd101370b9d8ef8a3a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -605,11 +635,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1710123225, "lastModified": 1712324865,
"narHash": "sha256-j3oWlxRZxB7cFsgEntpH3rosjFHRkAo/dhX9H3OfxtY=", "narHash": "sha256-+BatEWd4HlMeK7Ora+gYIkarjxFVCg9oKrIeybHIIX4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "ad2fd7b978d5e462048729a6c635c45d3d33c9ba", "rev": "f3b959627bca46a9f7052b8fbc464b8323e68c2c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -620,11 +650,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1706913249, "lastModified": 1712163089,
"narHash": "sha256-x3M7iV++CsvRXI1fpyFPduGELUckZEhSv0XWnUopAG8=", "narHash": "sha256-Um+8kTIrC19vD4/lUCN9/cU9kcOsD1O1m+axJqQPyMM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e92b6015881907e698782c77641aa49298330223", "rev": "fd281bd6b7d3e32ddfa399853946f782553163b5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -652,11 +682,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1709939601, "lastModified": 1712418268,
"narHash": "sha256-2dkG9wu9MqdFIYgUdbU0Y9H77x54y4mdVnuOHpVc9Rs=", "narHash": "sha256-ada/cxhkwk0D7/iuklXUv/EOx7ooYIn27LYAyYuoQ3o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "e6999b0bacd992f609dcb1657461c682addaf9d0", "rev": "ade3664ee297f453ea7f31945af6b751cf800b84",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -675,11 +705,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1707045317, "lastModified": 1712081763,
"narHash": "sha256-o2NZJcNu2/M3qycZ2Z9sgIESQEBFmihbbA7//sp7yVA=", "narHash": "sha256-+xImkX19gde0Qac6kbJtJAXKXTOgcUE5z3RsBxVtseo=",
"owner": "pjones", "owner": "pjones",
"repo": "plasma-manager", "repo": "plasma-manager",
"rev": "290cd65b65e2da11ca9fda69781ea9beb8a6f6ac", "rev": "96a90a7f5ce6b29e01d7da83d082e870e4462174",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -832,11 +862,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1707015547, "lastModified": 1711855048,
"narHash": "sha256-YZr0OrqWPdbwBhxpBu69D32ngJZw8AMgZtJeaJn0e94=", "narHash": "sha256-HxegAPnQJSC4cbEbF4Iq3YTlFHZKLiNTk8147EbLdGg=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "23f61b897c00b66855074db471ba016e0cda20dd", "rev": "99b1e37f9fc0960d064a7862eb7adfb92e64fa10",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -871,11 +901,11 @@
}, },
"std": { "std": {
"locked": { "locked": {
"lastModified": 1701658249, "lastModified": 1710870712,
"narHash": "sha256-KIt1TUuBvldhaVRta010MI5FeQlB8WadjqljybjesN0=", "narHash": "sha256-e+7MJF2gsgTBuOWv4mCimSP0D9+naeFSw9a7N3yEmv4=",
"owner": "chessai", "owner": "chessai",
"repo": "nix-std", "repo": "nix-std",
"rev": "715db541ffff4194620e48d210b76f73a74b5b5d", "rev": "31bbc925750cc9d8f828fe55cee1a2bd985e0c00",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -929,11 +959,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1705309234, "lastModified": 1710146030,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -946,18 +976,18 @@
"flake": false, "flake": false,
"locked": { "locked": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"lastModified": 1706359063, "lastModified": 1709983277,
"narHash": "sha256-5HUTG0p+nCJv3cn73AmFHRZdfRV5AD5N43g8xAePSKM=", "narHash": "sha256-wXWIJLd4F2JZeMaihWVDW/yYXCLEC8OpeNJZg9a9ly8=",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "00b869c1a96f300a8f25da95d624524895e0ddf2", "rev": "50eae512d9cecbf0b3b1898bb1f0b40fa05fe19b",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "00b869c1a96f300a8f25da95d624524895e0ddf2", "rev": "50eae512d9cecbf0b3b1898bb1f0b40fa05fe19b",
"type": "gitlab" "type": "gitlab"
} }
}, },
@ -974,11 +1004,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1707162675, "lastModified": 1710519878,
"narHash": "sha256-ZojPqn5+cuuqCt/VVGo+uuRxYLtMomahHseFj9HB3O8=", "narHash": "sha256-0dbc10OBFUVYyXC+C+N6vRUd8xyBSRxkcZ4Egipbx0M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"rev": "4bb6b2e814be63caa115038e917c6c25b7fc2ac1", "rev": "aef95bdb6800a3a2af7aa7083d6df03067da6592",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -27,6 +27,9 @@ _: {
workspace-names = ["Main"]; workspace-names = ["Main"];
resize-with-right-button = true; resize-with-right-button = true;
}; };
"org/gnome/desktop/input-sources" = {
xkb-options = ["terminate:ctrl_alt_bksp" "caps:ctrl_modifier"];
};
}; };
}; };
} }

View file

@ -1,33 +0,0 @@
{pkgs, ...}: {
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "palenight";
package = pkgs.palenight-theme;
};
cursorTheme = {
name = "Numix-Cursor";
package = pkgs.numix-cursor-theme;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
};
home.sessionVariables.GTK_THEME = "palenight";
}

View file

@ -0,0 +1,23 @@
{
config,
pkgs,
inputs,
...
}: {
systemd.user.services.konawall-py-gnome = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
After = ["gnome-session.target" "network-online.target"];
Environment = [
"PYSTRAY_BACKEND=gtk"
];
};
Service = {
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
Restart = "on-failure";
RestartSec = "1s";
};
Install = {WantedBy = ["gnome-session.target"];};
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
services.hypridle = { services.hypridle = {
enable = true; enable = true;
listeners = [ listeners = [
@ -15,7 +15,6 @@
timeout = 330; timeout = 330;
onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
} }
{ {
timeout = 600; timeout = 600;

View file

@ -106,7 +106,6 @@ in {
", XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next" ", XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next"
", XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl prev" ", XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl prev"
"$mod, F, exec, firefox"
"$mod, R, exec, wofi -t wezterm -IS drun" "$mod, R, exec, wofi -t wezterm -IS drun"
"$mod SHIFT, R, exec, wofi -t wezterm -IS run" "$mod SHIFT, R, exec, wofi -t wezterm -IS run"
"$mod, Return, exec, wezterm" "$mod, Return, exec, wezterm"

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
backgrounds = [ backgrounds = [
@ -9,5 +9,4 @@
} }
]; ];
}; };
} }

View file

@ -20,7 +20,7 @@
}; };
}; };
in { in {
systemd.user.services.konawall-py = { systemd.user.services.konawall-py-hyprland = {
Unit = { Unit = {
Description = "konawall-py"; Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)]; X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];

View file

@ -0,0 +1,32 @@
{pkgs, ...}: {
home.pointerCursor = {
gtk.enable = true;
# x11.enable = true;
package = pkgs.chicago95;
name = "Chicago95";
size = 16;
};
gtk = {
enable = true;
iconTheme = {
name = "Chicago95-tux";
package = pkgs.chicago95;
};
theme = {
name = "Chicago95";
package = pkgs.chicago95;
};
cursorTheme = {
name = "Chicago95";
package = pkgs.chicago95;
};
font = {
name = "Monaspace Krypton";
size = 11;
};
};
}

View file

@ -0,0 +1,42 @@
{
inputs,
pkgs,
config,
...
}: let
konawallConfig = {
interval = 60 * 5;
rotate = true;
source = "konachan";
tags = [
"rating:s"
"touhou"
"score:>=50"
"width:>=1500"
];
logging = {
file = "INFO";
console = "DEBUG";
};
};
in {
systemd.user.services.konawall-py = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
After = ["gnome-session.target" "network-online.target"];
Environment = [
"PYSTRAY_BACKEND=gtk"
];
};
Service = {
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
Restart = "on-failure";
RestartSec = "1s";
};
Install = {WantedBy = ["xfce4-session.target"];};
};
xdg.configFile = {
"konawall/config.toml".source = (pkgs.formats.toml {}).generate "konawall-config" konawallConfig;
};
}

View file

@ -0,0 +1,31 @@
_: {
xfconf = {
settings = {
xsettings = {
"Xfce4/SyncThemes" = true;
"Net/IconThemeName" = "Chicago95-tux";
"Net/ThemeName" = "Chicago95";
};
xfce4-keyboard-shortcuts = {
"commands/custom/Super_L" = "xfce4-popup-whiskermenu";
};
xfce4-session = {
"startup/ssh-agent/enabled" = false;
};
xfce4-power-manager = {
"xfce4-power-manager/show-tray-icon" = false;
"xfce4-power-manager/general-notification" = true;
};
xfwm4 = {
"general/theme" = "Chicago95";
"general/title_font" = "Sans Bold 8";
"general/show_dock_shadow" = false;
};
xfce4-notifyd = {
"theme" = "Chicago95";
};
};
enable = true;
};
}

View file

@ -22,6 +22,6 @@ in {
ansi.palette.background.alpha = "ee00"; ansi.palette.background.alpha = "ee00";
}; };
}; };
defaultSchemeName = "light"; defaultSchemeName = "dark";
}; };
} }

View file

@ -20,7 +20,6 @@
deadnix # nix dead-code scanner deadnix # nix dead-code scanner
alejandra # nix code formatter alejandra # nix code formatter
statix # nix anti-pattern finder statix # nix anti-pattern finder
rnix-lsp # vscode nix extensions
deploy-rs.deploy-rs # deployment system deploy-rs.deploy-rs # deployment system
]; ];
} }

View file

@ -0,0 +1,10 @@
{ pkgs, lib, ... }: let
inherit (lib.generators) toJSON;
in {
home.packages = with pkgs; [
discord
];
xdg.configFile."discord/settings.json".text = toJSON {} {
"SKIP_HOST_UPDATE" = true;
};
}

View file

@ -14,7 +14,6 @@
spotify spotify
# Chat # Chat
discord
fractal # Matrix fractal # Matrix
tdesktop # Telegram tdesktop # Telegram
dino # XMPP dino # XMPP
@ -26,7 +25,6 @@
p7zip p7zip
# Misc # Misc
gimp-with-plugins # GIMP
exiftool # EXIF Stripping exiftool # EXIF Stripping
lm_sensors # Sensor Data lm_sensors # Sensor Data
cryptsetup # Encrypted block devices cryptsetup # Encrypted block devices

View file

@ -4,11 +4,26 @@ _: {
extraConfig = '' extraConfig = ''
local wezterm = require 'wezterm'; local wezterm = require 'wezterm';
return { return {
font = wezterm.font "Monaspace Krypton", font = wezterm.font_with_fallback({
-- /nix/store/rh47mw5pfp7w2nmkn8rlwjkmkzf11prq-monaspace-1.000/share/fonts/opentype/MonaspaceKrypton-Regular.otf, FontConfig
"Monaspace Krypton",
-- <built-in>, BuiltIn
"JetBrains Mono",
-- /nix/store/mc76mhlam0rggcgx3z695025phl07pi1-noto-fonts-color-emoji-2.042/share/fonts/noto/NotoColorEmoji.ttf, FontConfig
-- Assumed to have Emoji Presentation
-- Pixel sizes: [128]
"Noto Color Emoji",
-- <built-in>, BuiltIn
"Symbols Nerd Font Mono",
}),
font_size = 10.0, font_size = 10.0,
check_for_updates = false, check_for_updates = false,
show_update_window = false, show_update_window = false,
enable_tab_bar = true enable_tab_bar = false
} }
''; '';
}; };

View file

@ -1,6 +1,5 @@
_: { _: {
programs.eza = { programs.eza = {
enable = true; enable = true;
enableAliases = true;
}; };
} }

View file

@ -0,0 +1,25 @@
{ pkgs, ... }: {
services.xserver = {
enable = true;
libinput.touchpad = {
tappingButtonMap = "lrm";
clickMethod = "clickfinger";
};
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
displayManager.gdm.enable = true;
displayManager.defaultSession = "xfce";
xkbOptions = "ctrl:nocaps";
};
programs.xfconf.enable = true;
environment.systemPackages = with pkgs; [
xfce.xfce4-pulseaudio-plugin
xfce.xfce4-whiskermenu-plugin
xclip
];
services.colord.enable = true;
}

View file

@ -4,7 +4,7 @@ _: {
enable = true; enable = true;
}; };
consoleLogLevel = 0; consoleLogLevel = 0;
kernelParams = [ "quiet" ]; kernelParams = ["quiet"];
initrd = { initrd = {
verbose = false; verbose = false;
systemd.enable = true; systemd.enable = true;

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
services = { services = {
fwupd = { fwupd = {
enable = true; enable = true;

View file

@ -1,6 +1,10 @@
{config, lib, ... }: let {
config,
lib,
...
}: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
in { in {
boot.loader = mkIf (config.boot.loader.grub.enable) { boot.loader = mkIf (config.boot.loader.grub.enable) {
timeout = null; timeout = null;
grub = { grub = {

View file

@ -0,0 +1,45 @@
{pkgs, ...}: {
hardware.opengl = {
driSupport32Bit = true;
driSupport = true;
};
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
driversi686Linux.mesa
];
environment.systemPackages = with pkgs; [
(lutris.override {
extraPkgs = pkgs: [
pkgs.libnghttp2
pkgs.winetricks
pkgs.jansson
pkgs.samba
];
extraLibraries = pkgs: [
pkgs.jansson
pkgs.samba
pkgs.xz
];
})
# support 32-bit only
wine
# support 64-bit only
wine64
# wine-staging (version with experimental features)
wineWowPackages.staging
# winetricks (all versions)
winetricks
# native wayland support (unstable)
wineWowPackages.waylandFull
];
}

View file

@ -0,0 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
parsec-bin
];
}

View file

@ -0,0 +1,13 @@
{pkgs, ...}: {
services.avahi = {
nssmdns4 = true;
enable = true;
ipv4 = true;
ipv6 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
}

View file

@ -8,6 +8,7 @@
corefonts corefonts
vistafonts vistafonts
open-dyslexic open-dyslexic
chicago95
]; ];
enableDefaultPackages = true; enableDefaultPackages = true;
fontDir.enable = true; fontDir.enable = true;

View file

@ -5,6 +5,6 @@
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
pinentryFlavor = "qt"; pinentryPackage = pkgs.pinentry-gnome3;
}; };
} }

9
nixos/profiles/sdr.nix Normal file
View file

@ -0,0 +1,9 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
rtl-sdr
sdrpp
sdrangel
];
hardware.rtl-sdr.enable = true;
users.users.kat.extraGroups = ["plugdev"];
}

View file

@ -0,0 +1,16 @@
{pkgs, lib, ...}: let
inherit (lib.modules) mkForce;
in {
environment.systemPackages = with pkgs; [
sbctl
];
boot = {
loader = {
systemd-boot.enable = mkForce false;
};
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
};
}

View file

@ -1,16 +1,16 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [bluez5-experimental]; environment.systemPackages = with pkgs; [bluez5-experimental];
environment.etc = { services.pipewire.wireplumber.configPackages = [
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' (pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/10-bluez.conf" ''
bluez_monitor.properties = { bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true, ["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true, ["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = true, ["bluez5.enable-hw-volume"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
} }
''; '')
}; ];
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;

44
packages/chicago95.nix Normal file
View file

@ -0,0 +1,44 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
gdk-pixbuf,
xfce,
...
}:
stdenvNoCC.mkDerivation rec {
pname = "chicago95";
version = "3.0.1";
buildInputs = [gdk-pixbuf xfce.xfce4-panel-profiles];
src = fetchFromGitHub {
owner = "grassmunk";
repo = "Chicago95";
rev = "v${version}";
hash = "sha256-EHcDIct2VeTsjbQWnKB2kwSFNb97dxuydAu+i/VquBA=";
};
# the Makefile is just for maintainers
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/{themes,icons,sounds}
cp -r Theme/Chicago95 $out/share/themes
cp -r Icons/* $out/share/icons
cp -r Cursors/* $out/share/icons
cp -r sounds/Chicago95 $out/share/sounds
runHook postInstall
'';
meta = with lib; {
description = "A rendition of everyone's favorite 1995 Microsoft operating system for Linux.";
homepage = "https://github.com/grassmunk/Chicago95";
license = with licenses; [gpl3Plus mit];
platforms = platforms.linux;
maintainers = with maintainers; [];
};
}

View file

@ -115,7 +115,8 @@
pkgs = pkgs.${config.system}; pkgs = pkgs.${config.system};
nurpkgs = pkgs.${config.system}; nurpkgs = pkgs.${config.system};
}; };
in { in
{
inherit machine nur; inherit machine nur;
systemType = config.folder; systemType = config.folder;
inherit (config) system; inherit (config) system;

View file

@ -1,11 +1,11 @@
_: let _: let
hostConfig = { hostConfig = {
tree, tree,
pkgs, pkgs,
lib, lib,
inputs, inputs,
... ...
}: { }: {
imports = imports =
(with tree.nixos.hardware; [ (with tree.nixos.hardware; [
framework framework
@ -16,37 +16,22 @@ hostConfig = {
wireless wireless
laptop laptop
bcachefs bcachefs
sdr
secureboot
]) ])
++ (with tree.nixos.environments; [ ++ (with tree.nixos.environments; [
hyprland xfce
]); ]);
config = let config = {
inherit (lib.modules) mkForce;
in {
home-manager.users.kat.imports = home-manager.users.kat.imports =
(with tree.home.profiles; [ (with tree.home.profiles; [
graphical graphical
devops devops
]) ])
++ (with tree.home.environments; [ ++ (with tree.home.environments; [
hyprland xfce
]); ]);
environment.systemPackages = with pkgs; [
parsec-bin
sbctl
];
services.avahi = {
nssmdns = true;
enable = true;
ipv4 = true;
ipv6 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
fileSystems = { fileSystems = {
"/" = { "/" = {
device = "/dev/disk/by-uuid/861e8815-9327-4e49-915b-73a3b0bdfa25"; device = "/dev/disk/by-uuid/861e8815-9327-4e49-915b-73a3b0bdfa25";
@ -64,13 +49,6 @@ hostConfig = {
boot = { boot = {
supportedFilesystems = ["ntfs"]; supportedFilesystems = ["ntfs"];
loader = {
systemd-boot.enable = mkForce false;
};
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
}; };
networking = { networking = {
@ -79,7 +57,7 @@ hostConfig = {
system.stateVersion = "24.05"; system.stateVersion = "24.05";
}; };
}; };
in { in {
arch = "x86_64"; arch = "x86_64";
type = "NixOS"; type = "NixOS";