summaryrefslogtreecommitdiff
path: root/hosts/cez/modules
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cez/modules')
-rw-r--r--hosts/cez/modules/network.nix15
-rw-r--r--hosts/cez/modules/sshfs.nix27
-rw-r--r--hosts/cez/modules/wayland.nix83
-rw-r--r--hosts/cez/modules/wireguard.nix27
4 files changed, 0 insertions, 152 deletions
diff --git a/hosts/cez/modules/network.nix b/hosts/cez/modules/network.nix
deleted file mode 100644
index fb30056..0000000
--- a/hosts/cez/modules/network.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ ... }:
-
-{
- networking = {
- firewall.enable = false;
-
- wireless.iwd = {
- enable = true;
- settings = {
- General.EnableNetworkConfiguration = true;
- Network.NameResolvingService = "resolvconf";
- };
- };
- };
-}
diff --git a/hosts/cez/modules/sshfs.nix b/hosts/cez/modules/sshfs.nix
deleted file mode 100644
index a9ff183..0000000
--- a/hosts/cez/modules/sshfs.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ config, pkgs, ... }:
-
-let
- domain = config.userdata.domain;
- user = config.userdata.user;
- uid = config.users.users.${user}.uid;
- gid = config.users.groups.users.gid;
-in
-{
- sops.secrets."misc/sftp" = {};
- system.fsPackages = with pkgs; [ sshfs ];
-
- fileSystems."/kay" = {
- device = "sftp@${domain}:";
- fsType = "sshfs";
- options = [
- "allow_other" # for non-root access
- "uid=${toString uid}"
- "gid=${toString gid}"
- "_netdev" # this is a network fs
- "x-systemd.automount" # mount on demand
- "reconnect" # handle connection drops
- "ServerAliveInterval=15" # keep connections alive
- "IdentityFile=${config.sops.secrets."misc/sftp".path}"
- ];
- };
-}
diff --git a/hosts/cez/modules/wayland.nix b/hosts/cez/modules/wayland.nix
deleted file mode 100644
index c04d1bf..0000000
--- a/hosts/cez/modules/wayland.nix
+++ /dev/null
@@ -1,83 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-let
- user = config.userdata.user;
-in
-{
- # pkgs
- environment.systemPackages = with pkgs; [
- bemenu
- sway
- i3status
- swaylock
- swayidle
- swaybg
- foot
- wl-clipboard
- mako
- xdg-utils
- libnotify
- ];
-
- users.users.${user} = {
- extraGroups = [ "seat" ];
- packages = with pkgs; [
- zathura
- mpv
- imv
- wtype
- qemu
- OVMFFull
- grim
- slurp
- tor-browser-bundle-bin
- element-desktop-wayland
- pinentry-bemenu
- ];
- };
-
- # font
- fonts = {
- packages = with pkgs; [
- terminus-nerdfont
- dm-sans
- ];
- enableDefaultPackages = true;
- fontconfig = {
- hinting.style = "full";
- subpixel.rgba = "rgb";
- defaultFonts = {
- monospace = [ "Terminess Nerd Font" ];
- serif = [ "DeepMind Sans" ];
- sansSerif = [ "DeepMind Sans" ];
- };
- };
- };
-
- # misc
- services = {
- seatd.enable = true;
- dbus = {
- implementation = "broker";
- enable = true;
- };
- };
-
- programs = {
- gnupg.agent = {
- enable = true;
- settings.pinentry-program = lib.mkForce "${pkgs.pinentry-bemenu}/bin/pinentry-bemenu";
- };
- firefox = {
- enable = true;
- preferences = {
- "media.ffmpeg.vaapi.enabled" = true;
- "gfx.webrender.all" = true;
- "identity.fxaccounts.enabled" = false;
- };
- };
- };
-
- security.pam.services.swaylock.text = "auth include login";
- hardware.opengl.enable = true;
-}
diff --git a/hosts/cez/modules/wireguard.nix b/hosts/cez/modules/wireguard.nix
deleted file mode 100644
index d8e8dd0..0000000
--- a/hosts/cez/modules/wireguard.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ config, ... }:
-
-let
- domain = config.userdata.domain;
-in
-{
- sops.secrets."misc/wireguard" = {};
-
- networking.wg-quick.interfaces."kay" = {
- autostart = false;
- address = [ "10.0.1.2/24" ];
- dns = [ "10.0.1.1" ];
- mtu = 1380;
- privateKeyFile = config.sops.secrets."misc/wireguard".path;
-
- peers = [{
- publicKey = "wJMyQDXmZO4MjYRk6NK4+J6ZKWLTTZygAH+OwbPjOiw=";
- allowedIPs = [
- "10.0.1.0/24"
- "104.16.0.0/12"
- "172.64.0.0/13"
- ];
- endpoint = "${domain}:51820";
- persistentKeepalive = 25;
- }];
- };
-}