diff options
author | Azat Bahawi <azat@bahawi.net> | 2022-11-20 23:14:33 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-11-20 23:14:33 +0300 |
commit | 3229e56e0d3620ddc735edcfbbefb167efa3b23f (patch) | |
tree | 5000ad05647c66687244dbd0ef29e0b29a3a6241 /configurations/eonwe/default.nix | |
parent | 2022-11-10 (diff) |
2022-11-20
Diffstat (limited to '')
-rw-r--r-- | configurations/eonwe/default.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/configurations/eonwe/default.nix b/configurations/eonwe/default.nix new file mode 100644 index 0000000..c9af8e5 --- /dev/null +++ b/configurations/eonwe/default.nix @@ -0,0 +1,84 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; { + nixfiles.modules = { + wireguard.client.enable = true; + + syncthing.enable = true; + + openssh.server.enable = true; + + games = { + lutris.enable = true; + steam.enable = true; + }; + android.enable = true; + bluetooth.enable = true; + libvirtd.enable = true; + qutebrowser.enable = true; + }; + + hm.programs = { + firefox.profiles.default.settings."media.ffmpeg.vaapi.enabled" = true; + + mpv.config = { + hwdec = "vdpau"; + vo = "vdpau"; + profile = "gpu-hq"; + }; + }; + + networking = { + interfaces = { + eth0.useDHCP = true; + wlan0.useDHCP = true; + }; + + networkmanager = { + enable = true; + wifi.backend = "iwd"; + }; + + wireless = { + enable = false; + iwd.enable = true; + userControlled.enable = true; + allowAuxiliaryImperativeNetworks = true; + }; + }; + + boot = { + initrd.availableKernelModules = ["ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"]; + + loader = { + efi.canTouchEfiVariables = true; + + systemd-boot = { + enable = true; + configurationLimit = 10; + }; + }; + }; + + fileSystems = { + "/boot" = { + device = "/dev/disk/by-uuid/FF1E-9CFD"; + fsType = "vfat"; + }; + + "/" = { + device = "/dev/disk/by-uuid/20276c1b-7e46-430b-b741-2f4aeb76bc51"; + fsType = "xfs"; + options = ["noatime"]; + }; + }; + + zramSwap = { + enable = true; + memoryPercent = 25; + }; +} |