diff options
author | Kenny Ballou <kballou@devnulllabs.io> | 2019-05-01 10:38:37 -0600 |
---|---|---|
committer | Kenny Ballou <kballou@devnulllabs.io> | 2019-05-01 10:38:37 -0600 |
commit | e574a725cac3255aad67b59b65fc61d1391b7deb (patch) | |
tree | 6ae10fbdcd9cd413a8d84d00193968d808816300 /services | |
parent | a30ca28d54ecfce1eb275f371c7f5f70f198e883 (diff) | |
download | cfg.nix-e574a725cac3255aad67b59b65fc61d1391b7deb.tar.gz cfg.nix-e574a725cac3255aad67b59b65fc61d1391b7deb.tar.xz |
nix: initial configurations
Add an initial set of configurations as well as configurations for the
`phenex` machine.
Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'services')
-rw-r--r-- | services/clamav.nix | 9 | ||||
-rw-r--r-- | services/compton.nix | 11 | ||||
-rw-r--r-- | services/dnsmasq.nix | 6 | ||||
-rw-r--r-- | services/firewall.nix | 5 | ||||
-rw-r--r-- | services/haveged.nix | 4 | ||||
-rw-r--r-- | services/kde.nix | 6 | ||||
-rw-r--r-- | services/printing.nix | 5 | ||||
-rw-r--r-- | services/sound.nix | 6 | ||||
-rw-r--r-- | services/x11-laptop.nix | 7 | ||||
-rw-r--r-- | services/x11.nix | 8 |
10 files changed, 67 insertions, 0 deletions
diff --git a/services/clamav.nix b/services/clamav.nix new file mode 100644 index 0000000..c6408e9 --- /dev/null +++ b/services/clamav.nix @@ -0,0 +1,9 @@ +{ config, ... }: +{ + services = { + clamav = { + daemon.enable = true; + updater.enable = true; + }; + }; +} diff --git a/services/compton.nix b/services/compton.nix new file mode 100644 index 0000000..57a4d81 --- /dev/null +++ b/services/compton.nix @@ -0,0 +1,11 @@ +{ config, ... }: +{ + # Enable Compton visual effects + services.compton = { + enable = true; + fade = true; + inactiveOpacity = "0.9"; + shadow = true; + fadeDelta = 4; + }; +} diff --git a/services/dnsmasq.nix b/services/dnsmasq.nix new file mode 100644 index 0000000..717ca45 --- /dev/null +++ b/services/dnsmasq.nix @@ -0,0 +1,6 @@ +{ config, ... }: +{ + # Local DNS server + services.dnsmasq.enable = true; + services.dnsmasq.servers = [ "127.0.0.1#43" ]; +} diff --git a/services/firewall.nix b/services/firewall.nix new file mode 100644 index 0000000..81ec5d1 --- /dev/null +++ b/services/firewall.nix @@ -0,0 +1,5 @@ +{ config, ... }: +{ + # Firewall configuration + networking.firewall.enable = true; +} diff --git a/services/haveged.nix b/services/haveged.nix new file mode 100644 index 0000000..d50fb11 --- /dev/null +++ b/services/haveged.nix @@ -0,0 +1,4 @@ +{ config, ... }: +{ + services.haveged.enable = true; +} diff --git a/services/kde.nix b/services/kde.nix new file mode 100644 index 0000000..5c3237d --- /dev/null +++ b/services/kde.nix @@ -0,0 +1,6 @@ +{ config, ... }: +{ + # Enable the KDE Desktop Environment. + services.xserver.displayManager.sddm.enable = true; + services.xserver.desktopManager.plasma5.enable = true; +} diff --git a/services/printing.nix b/services/printing.nix new file mode 100644 index 0000000..b6f171f --- /dev/null +++ b/services/printing.nix @@ -0,0 +1,5 @@ +{ config, ... }: +{ + # Enable CUPS to print documents. + # services.printing.enable = true; +} diff --git a/services/sound.nix b/services/sound.nix new file mode 100644 index 0000000..a9e534a --- /dev/null +++ b/services/sound.nix @@ -0,0 +1,6 @@ +{ config, ... }: +{ + # Enable sound. + sound.enable = true; + hardware.pulseaudio.enable = true; +} diff --git a/services/x11-laptop.nix b/services/x11-laptop.nix new file mode 100644 index 0000000..c54d5e9 --- /dev/null +++ b/services/x11-laptop.nix @@ -0,0 +1,7 @@ +{ config, ... }: +{ + # Enable touchpad support. + services.xserver.libinput.enable = true; + services.xserver.libinput.scrollMethod = "twofinger"; + services.xserver.libinput.horizontalScrolling = false; +} diff --git a/services/x11.nix b/services/x11.nix new file mode 100644 index 0000000..30653e5 --- /dev/null +++ b/services/x11.nix @@ -0,0 +1,8 @@ +{ config, ... }: +{ + # Enable the X11 windowing system. + services.xserver.enable = true; + services.xserver.layout = "us"; + # services.xserver.xkbVarient = ""; + services.xserver.xkbOptions = "ctrl:nocaps"; +} |