First commit
This commit is contained in:
54
modules/desktop/default.nix
Normal file
54
modules/desktop/default.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}@attrs:
|
||||
let
|
||||
hostname = "${attrs.hostname}";
|
||||
gpu = [
|
||||
"home.nix"
|
||||
];
|
||||
## mettre le module picom hors de X11 et l'installer seulement sur les ordinateurs gpu
|
||||
# l'importer dans X11 seulement si gpu
|
||||
isGpu = lib.any (name: hostname == name) gpu;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./common
|
||||
./dunst
|
||||
./kitty
|
||||
./rofi
|
||||
./sound
|
||||
./gaming
|
||||
]
|
||||
++
|
||||
lib.optionals
|
||||
(builtins.elem hostname [
|
||||
"home-nix"
|
||||
])
|
||||
[
|
||||
(import ./X11 { inherit lib pkgs isGpu; })
|
||||
./printers
|
||||
./gaming
|
||||
./nvidia
|
||||
./virt-manager
|
||||
]
|
||||
++
|
||||
lib.optionals
|
||||
(builtins.elem hostname [
|
||||
"test-nix"
|
||||
])
|
||||
[
|
||||
./X11
|
||||
]
|
||||
++
|
||||
lib.optionals
|
||||
(builtins.elem hostname [
|
||||
"home-nix"
|
||||
"test-nix"
|
||||
])
|
||||
[
|
||||
./wayland
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user