mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Split system config into tons of modules!
This commit is contained in:
parent
74c00ca4ef
commit
8262f63886
21 changed files with 266 additions and 180 deletions
12
system/wm/dbus.nix
Normal file
12
system/wm/dbus.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.dbus = {
|
||||
enable = true;
|
||||
packages = [ pkgs.dconf ];
|
||||
};
|
||||
|
||||
programs.dconf = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
17
system/wm/fonts.nix
Normal file
17
system/wm/fonts.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Fonts are nice to have
|
||||
fonts.fonts = with pkgs; [
|
||||
# Fonts
|
||||
(nerdfonts.override { fonts = [ "Inconsolata" ]; })
|
||||
powerline
|
||||
inconsolata
|
||||
inconsolata-nerdfont
|
||||
iosevka
|
||||
font-awesome
|
||||
ubuntu_font_family
|
||||
terminus_font
|
||||
];
|
||||
|
||||
}
|
7
system/wm/gnome-keyring.nix
Normal file
7
system/wm/gnome-keyring.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.gnome = {
|
||||
gnome-keyring.enable = true;
|
||||
};
|
||||
}
|
13
system/wm/pipewire.nix
Normal file
13
system/wm/pipewire.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Pipewire
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
35
system/wm/x11.nix
Normal file
35
system/wm/x11.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./pipewire.nix
|
||||
./dbus.nix
|
||||
./gnome-keyring.nix
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
# Configure X11
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
xkbOptions = "caps:escape";
|
||||
windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
};
|
||||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
defaultSession = "none+xmonad";
|
||||
sessionCommands = ''
|
||||
xset -dpms
|
||||
xset s blank
|
||||
xset r rate 350 50
|
||||
xset s 300
|
||||
${pkgs.lightlocker}/bin/light-locker --idle-hint &
|
||||
'';
|
||||
};
|
||||
libinput = {
|
||||
touchpad.disableWhileTyping = true;
|
||||
};
|
||||
};
|
||||
}
|
20
system/wm/xmonad.nix
Normal file
20
system/wm/xmonad.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# import X11
|
||||
imports = [ ./x11.nix
|
||||
./pipewire.nix
|
||||
./dbus.nix
|
||||
];
|
||||
|
||||
# Setup XMonad
|
||||
services.xserver = {
|
||||
windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
};
|
||||
displayManager = {
|
||||
defaultSession = "none+xmonad";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue