mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moving towards modules...
This commit is contained in:
parent
32bf78aa36
commit
f911f3f44d
18 changed files with 288 additions and 237 deletions
7
modules/DE-WM/default.nix
Normal file
7
modules/DE-WM/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
inputs: {
|
||||
imports = [
|
||||
(import ./gnome.nix inputs)
|
||||
(import ./xfce.nix inputs)
|
||||
(import ./dwm.nix inputs)
|
||||
];
|
||||
}
|
||||
32
modules/DE-WM/dwm.nix
Normal file
32
modules/DE-WM/dwm.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{suckless, ...}: {
|
||||
pkgs,
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.dwm;
|
||||
in {
|
||||
options.localModules.dwm = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [suckless.packages.${pkgs.system}.dmenu];
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
windowManager.dwm = {
|
||||
enable = true;
|
||||
package = suckless.packages.${pkgs.system}.dwm;
|
||||
};
|
||||
displayManager = {
|
||||
sessionCommands = ''
|
||||
feh --bg-scale ${self + /misc/recursion.png}
|
||||
'';
|
||||
defaultSession = "none+dwm";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
53
modules/DE-WM/gnome.nix
Normal file
53
modules/DE-WM/gnome.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
_: {
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.gnome;
|
||||
in {
|
||||
options.localModules.gnome = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
environment.gnome.excludePackages =
|
||||
(with pkgs; [
|
||||
gnome-photos
|
||||
gnome-tour
|
||||
gnome-console
|
||||
gnome-text-editor
|
||||
gnome-online-accounts
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
gnome-terminal
|
||||
gnome-weather
|
||||
gnome-shell
|
||||
gnome-calculator
|
||||
gnome-disk-utility
|
||||
gnome-maps
|
||||
gnome-clocks
|
||||
gnome-remote-desktop
|
||||
gnome-calendar
|
||||
gnome-music
|
||||
simple-scan
|
||||
cheese # webcam tool
|
||||
gedit # text editor
|
||||
epiphany # web browser
|
||||
geary # email reader
|
||||
evince # document viewer
|
||||
gnome-characters
|
||||
totem # video player
|
||||
tali # poker game
|
||||
iagno # go game
|
||||
hitori # sudoku game
|
||||
atomix # puzzle game
|
||||
]);
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.defaultSession = "gnome";
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/DE-WM/xfce.nix
Normal file
23
modules/DE-WM/xfce.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
_: {
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.xfce;
|
||||
in {
|
||||
options.localModules.xfce = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.xfce = {
|
||||
enable = true;
|
||||
enableScreensaver = true;
|
||||
};
|
||||
displayManager.defaultSession = "xfce";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue