mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Set wallpaper per user
This commit is contained in:
parent
af1fe2e180
commit
7499e9dc5e
4 changed files with 10 additions and 4 deletions
|
|
@ -9,10 +9,15 @@
|
||||||
in {
|
in {
|
||||||
imports = [./qtile];
|
imports = [./qtile];
|
||||||
|
|
||||||
options.myConfig.dm.tray = {
|
options.myConfig.dm = {
|
||||||
|
wallpaper = lib.mkOption {
|
||||||
|
type = lib.types.path;
|
||||||
|
};
|
||||||
|
tray = {
|
||||||
syncthing.enable = lib.mkEnableOption "";
|
syncthing.enable = lib.mkEnableOption "";
|
||||||
networkmanager.enable = lib.mkEnableOption "";
|
networkmanager.enable = lib.mkEnableOption "";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.tray.syncthing.enable {
|
(lib.mkIf cfg.tray.syncthing.enable {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file.".config/qtile/config.py".source = ./qtile.py;
|
home.file.".config/qtile/config.py".source = ./qtile.py;
|
||||||
home.file.".background-image".source = ./background-image;
|
home.file.".background-image".source = config.myConfig.dm.wallpaper;
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
# Widget dependencies
|
# Widget dependencies
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
myConfig = {
|
myConfig = {
|
||||||
dm = {
|
dm = {
|
||||||
qtile.enable = true;
|
qtile.enable = true;
|
||||||
|
wallpaper = ./wallpaper;
|
||||||
tray.syncthing.enable = true;
|
tray.syncthing.enable = true;
|
||||||
};
|
};
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
Loading…
Add table
Add a link
Reference in a new issue