more prep for lambdaos

This commit is contained in:
Noa Aarts 2024-11-20 21:33:36 +01:00
parent b707b1df5a
commit ae2f6c2243
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 28 additions and 29 deletions

View file

@ -71,6 +71,11 @@ in
yubico-piv-tool yubico-piv-tool
libreoffice-qt6 libreoffice-qt6
# for niri
wl-clipboard
libnotify
playerctl
]; ];
pointerCursor = lib.mkIf enableGraphical { pointerCursor = lib.mkIf enableGraphical {
gtk.enable = true; gtk.enable = true;
@ -104,6 +109,28 @@ in
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
modules = { modules = {
waybar = {
modules = {
left = [
"niri/workspaces"
"tray"
"niri/window"
];
center = [
"clock"
"custom/spotify"
];
right = [
"custom/vpn"
"wireplumber"
"network"
"cpu"
"memory"
"custom/poweroff"
];
};
enable = lib.mkDefault enableGraphical;
};
games.enable = enableGraphical && enableGames; games.enable = enableGraphical && enableGames;
apps = { apps = {
zsh.enable = true; zsh.enable = true;

View file

@ -93,38 +93,10 @@
} }
]; ];
extraConfig = { extraConfig = {
modules.waybar = {
modules = {
left = [
"niri/workspaces"
"tray"
"niri/window"
];
center = [
"clock"
"custom/spotify"
];
right = [
"custom/vpn"
"wireplumber"
"network"
"cpu"
"memory"
"custom/poweroff"
];
};
enable = lib.mkDefault true;
};
home.packages = with pkgs; [
wl-clipboard
libnotify
playerctl
];
xdg.configFile = { xdg.configFile = {
"niri/config.kdl".source = import ../../packages/niri-config/default.nix { "niri/config.kdl".source = import ../../packages/niri-config/default.nix {
pkgs = pkgs; inherit pkgs inputs;
self-pkgs = inputs.self.packages.${pkgs.system}; self-pkgs = inputs.self.packages.${pkgs.system};
inputs = inputs;
displays = [ displays = [
{ {
name = "eDP-1"; name = "eDP-1";