summaryrefslogtreecommitdiff
path: root/common/desktop.nix
diff options
context:
space:
mode:
authorstuebinm2022-01-10 00:42:01 +0100
committerstuebinm2022-01-10 01:56:35 +0100
commit38ba8be512b8dbb8838fbca9865b2a8d24f6bee1 (patch)
tree87d7c07a54627b781531cda677d90c0fffdac077 /common/desktop.nix
parentbe4ac10c641e39babc83db479c827b6dfb0af103 (diff)
add abbenay (desktop config)
Diffstat (limited to 'common/desktop.nix')
-rw-r--r--common/desktop.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/common/desktop.nix b/common/desktop.nix
new file mode 100644
index 0000000..eb94b6e
--- /dev/null
+++ b/common/desktop.nix
@@ -0,0 +1,62 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ ./common.nix
+ ./cachix.nix
+ ];
+
+ nix.package = pkgs.nix_2_4;
+ nix.extraOptions = ''
+ netrc-file = /home/stuebinm/Dokumente/.netrc
+ experimental-features = nix-command flakes
+ '';
+
+ virtualisation.podman.enable = true;
+
+ # Select internationalisation properties.
+ console = {
+ font = "Lat2-Terminus16";
+ keyMap = "de";
+ };
+
+ # Enable CUPS to print documents.
+ services.printing = {
+ enable = true;
+ drivers = [ pkgs.epson-escpr2 pkgs.epson-escpr ];
+ };
+
+
+ # Enable sound.
+ sound.enable = true;
+ hardware.pulseaudio.enable = true;
+
+ # Enable the X11 windowing system.
+ services.xserver.enable = true;
+ services.xserver.layout = "de";
+ services.xserver.xkbOptions = "eurosign:e,caps:escape";
+
+ users.mutableUsers = false;
+ users.defaultUserShell = pkgs.fish;
+ users.users.stuebinm = {
+ isNormalUser = true;
+ extraGroups = [ "docker" "wheel" ]; # Enable ‘sudo’ for the user.
+ home = "/home/stuebinm";
+ hashedPassword = "$6$IULsCnY7HjDHAJWs$05DYuwXsfWWKj6m3KTWCPp5k9HuQikIamNBzn2GihMG8oeEf5c8YkXlwuO6uTnX8ZFmyAQdhXfO5yYNEM/YTm0";
+ useDefaultShell = true;
+ };
+
+
+ services.syncthing = {
+ enable = true;
+ user = "stuebinm";
+ guiAddress = "syncthing.localhost:3000";
+ dataDir = "/home/stuebinm/syncthing";
+ configDir = "/home/stuebinm/syncthing/.config/syncthing";
+ };
+
+ networking.hosts = {
+ "127.0.0.1" = [ "syncthing.localhost" ];
+ };
+
+}