install plasma and use plasma-manager to configure

This commit is contained in:
cy 2025-02-01 22:36:56 -05:00
parent 258cce19fb
commit 81e06a0513
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
5 changed files with 72 additions and 0 deletions

24
flake.lock generated
View file

@ -1154,6 +1154,29 @@
"type": "github" "type": "github"
} }
}, },
"plasma-manager": {
"inputs": {
"home-manager": [
"home-manager"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1736549395,
"narHash": "sha256-XzwkB62Tt5UYoL1jXiHzgk/qz2fUpGHExcSIbyGTtI0=",
"owner": "nix-community",
"repo": "plasma-manager",
"rev": "a53af7f1514ef4cce8620a9d6a50f238cdedec8b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "plasma-manager",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1232,6 +1255,7 @@
"nixpkgs-garage": "nixpkgs-garage", "nixpkgs-garage": "nixpkgs-garage",
"nixvim": "nixvim", "nixvim": "nixvim",
"nvim-github-theme": "nvim-github-theme", "nvim-github-theme": "nvim-github-theme",
"plasma-manager": "plasma-manager",
"rust-overlay": "rust-overlay", "rust-overlay": "rust-overlay",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"treefmt": "treefmt" "treefmt": "treefmt"

View file

@ -72,6 +72,11 @@
url = "github:nix-community/nix-ld"; url = "github:nix-community/nix-ld";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nixpkgs-garage.url = "github:cything/nixpkgs/garage-module"; # unmerged PR nixpkgs-garage.url = "github:cything/nixpkgs/garage-module"; # unmerged PR
@ -218,6 +223,7 @@
./home/yt/ytnix.nix ./home/yt/ytnix.nix
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
inputs.niri.homeModules.config inputs.niri.homeModules.config
inputs.plasma-manager.homeManagerModules.plasma-manager
]; ];
}; };

25
home/plasma.nix Normal file
View file

@ -0,0 +1,25 @@
{ ... }:
{
programs.plasma = {
enable = true;
workspace = {
lookAndFeel = "org.ide.breezedark.desktop";
cursor = {
theme = "Bibata-Modern-Classic";
size = 32;
};
};
fonts = {
general = {
family = "IBM Plex Mono";
pointSize = 12;
};
};
input.keyboard = {
numlockOnStartup = "on";
options = [ "ctrl:nocaps" ];
};
};
}

View file

@ -11,6 +11,7 @@
../irssi.nix ../irssi.nix
../kitty.nix ../kitty.nix
../vscode.nix ../vscode.nix
../plasma.nix
]; ];
home = { home = {
username = "yt"; username = "yt";
@ -114,6 +115,7 @@
lldb lldb
(cutter.withPlugins (plugins: with plugins; [ rz-ghidra jsdec sigdb ])) (cutter.withPlugins (plugins: with plugins; [ rz-ghidra jsdec sigdb ]))
ida-free ida-free
patchelf
]; ];
programs.waybar.enable = true; programs.waybar.enable = true;

View file

@ -174,6 +174,8 @@
haskell-language-server haskell-language-server
ghc ghc
sbctl # secure boot sbctl # secure boot
wine-wayland
wine64
]; ];
environment.sessionVariables = { environment.sessionVariables = {
@ -187,6 +189,12 @@
services.displayManager = { services.displayManager = {
enable = true; enable = true;
autoLogin.user = "yt"; autoLogin.user = "yt";
defaultSession = "plasma";
sddm = {
enable = true;
wayland.enable = true;
autoNumlock = true;
};
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
@ -294,6 +302,8 @@
waylandpp waylandpp
cairo cairo
xcb-util-cursor xcb-util-cursor
libplist
p11-kit
xorg.libX11 xorg.libX11
xorg.libxcb xorg.libxcb
xorg.xcbutilwm xorg.xcbutilwm
@ -377,4 +387,9 @@
startAgent = true; startAgent = true;
enableAskPassword = true; enableAskPassword = true;
}; };
services.desktopManager.plasma6 = {
enable = true;
enableQt5Integration = true;
};
} }