diff --git a/flake.lock b/flake.lock index c9e5b52..6b119f9 100644 --- a/flake.lock +++ b/flake.lock @@ -19,11 +19,11 @@ "candy-icons": { "flake": false, "locked": { - "lastModified": 1745449297, - "narHash": "sha256-aXAtVtsJC9MdkhUJWZnOQteaR005+KnPxFrEepfomCk=", + "lastModified": 1746738946, + "narHash": "sha256-COC926EPA7w1eUnXq40iFuANUF3Rch83e/BekBsHNFo=", "ref": "refs/heads/master", - "rev": "1763fc1f476e6c2ba7ca8df878645815b808ebca", - "revCount": 1300, + "rev": "47abaeba8de75a1805b10f4fc8d698c6e8c614c9", + "revCount": 1302, "type": "git", "url": "https://github.com/EliverLara/candy-icons" }, @@ -37,11 +37,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1745812220, - "narHash": "sha256-hotBG0EJ9VmAHJYF0yhWuTVZpENHvwcJ2SxvIPrXm+g=", + "lastModified": 1747274630, + "narHash": "sha256-87RJwXbfOHyzTB9LYagAQ6vOZhszCvd8Gvudu+gf3qo=", "owner": "nix-community", "repo": "disko", - "rev": "d0c543d740fad42fe2c035b43c9d41127e073c78", + "rev": "ec7c109a4f794fce09aad87239eab7f66540b888", "type": "github" }, "original": { @@ -53,11 +53,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", "type": "github" }, "original": { @@ -118,7 +118,55 @@ "type": "github" } }, + "git-hooks": { + "inputs": { + "flake-compat": [ + "mailserver", + "flake-compat" + ], + "gitignore": "gitignore", + "nixpkgs": [ + "mailserver", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1742649964, + "narHash": "sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco=", + "owner": "cachix", + "repo": "git-hooks.nix", + "rev": "dcf5072734cb576d2b0c59b2ac44f5050b5eac82", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "git-hooks.nix", + "type": "github" + } + }, "gitignore": { + "inputs": { + "nixpkgs": [ + "mailserver", + "git-hooks", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709087332, + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", + "owner": "hercules-ci", + "repo": "gitignore.nix", + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore.nix", + "type": "github" + } + }, + "gitignore_2": { "inputs": { "nixpkgs": [ "pre-commit-hooks", @@ -141,11 +189,11 @@ }, "hardware": { "locked": { - "lastModified": 1745955289, - "narHash": "sha256-mmV2oPhQN+YF2wmnJzXX8tqgYmUYXUj3uUUBSTmYN5o=", + "lastModified": 1747129300, + "narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "72081c9fbbef63765ae82bff9727ea79cc86bd5b", + "rev": "e81fd167b33121269149c57806599045fd33eeed", "type": "github" }, "original": { @@ -159,11 +207,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1746040799, - "narHash": "sha256-osgPX/SzIpkR50vev/rqoTEAVkEcOWXoQXmbzsaI4KU=", + "lastModified": 1747333808, + "narHash": "sha256-9I4FCIvabsMhrs0nm1GLjf+WGnK383IVzHITvzneGYQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "5f217e5a319f6c186283b530f8c975e66c028433", + "rev": "ec8205c3d7d4b19998d9b762d2c5abd2fc11faa7", "type": "github" }, "original": { @@ -199,11 +247,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1745487384, - "narHash": "sha256-WvQ4XXi0vMtEpPqhfo8ztxjeaeHkbW5tfR4O5+w8r5U=", + "lastModified": 1747322066, + "narHash": "sha256-ni6Lj30KbbUGIdTJA8KoL7vlSr1tn2uadCczaFTwciY=", "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", - "rev": "0168e4a65c9d43c22ac38ff27f5fa31c7d535148", + "rev": "6dba63701931daedbdf0ef6be7fbec4f59dc3706", "type": "github" }, "original": { @@ -216,15 +264,16 @@ "inputs": { "blobs": "blobs", "flake-compat": "flake-compat", + "git-hooks": "git-hooks", "nixpkgs": "nixpkgs_4", "nixpkgs-24_11": "nixpkgs-24_11" }, "locked": { - "lastModified": 1745416927, - "narHash": "sha256-jg725STLRgsIAgrvjbRJQEP0F0w+rmvDJ64EN65p6EI=", + "lastModified": 1747320434, + "narHash": "sha256-wOW99SCOovRlX5y8+W1cRrS3mEN1QA0XTHMRfr3NMB8=", "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", - "rev": "ab52efd622a9f7dca269a49edbbea6b6b7294f57", + "rev": "433520257af7170824ab6e567d49b8e305e776e9", "type": "gitlab" }, "original": { @@ -247,11 +296,11 @@ "yorha-sound-theme": "yorha-sound-theme" }, "locked": { - "lastModified": 1745551900, - "narHash": "sha256-PN/zlruDzK1M9SgWMclDUXaNrp6xaoFPy5bbYd2693Y=", + "lastModified": 1747333682, + "narHash": "sha256-xIrCoMr1wUTAbPRT9/ZZHDgVnGjNncFwzT2/xZfzomI=", "ref": "refs/heads/main", - "rev": "0cfc86bb27f951f65a588e90973b4eeeea542045", - "revCount": 35, + "rev": "272b0d8b17b18c7058bd4bc52404acc42542b317", + "revCount": 36, "type": "git", "url": "https://forgejo.invariantspace.com/macronova/nix-custom" }, @@ -284,11 +333,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1744868846, - "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", + "lastModified": 1747060738, + "narHash": "sha256-ByfPRQuqj+nhtVV0koinEpmJw0KLzNbgcgi9EF+NVow=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", + "rev": "eaeed9530c76ce5f1d2d8232e08bec5e26f18ec1", "type": "github" }, "original": { @@ -300,26 +349,27 @@ }, "nixpkgs-24_11": { "locked": { - "lastModified": 1734083684, - "narHash": "sha256-5fNndbndxSx5d+C/D0p/VF32xDiJCJzyOqorOYW4JEo=", + "lastModified": 1747209494, + "narHash": "sha256-fLise+ys+bpyjuUUkbwqo5W/UyIELvRz9lPBPoB0fbM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "314e12ba369ccdb9b352a4db26ff419f7c49fa84", + "rev": "5d736263df906c5da72ab0f372427814de2f52f8", "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "NixOS", "ref": "nixos-24.11", - "type": "indirect" + "repo": "nixpkgs", + "type": "github" } }, "nixpkgs_2": { "locked": { - "lastModified": 1745930157, - "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", + "lastModified": 1746904237, + "narHash": "sha256-3e+AVBczosP5dCLQmMoMEogM57gmZ2qrVSrmq9aResQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", + "rev": "d89fc19e405cb2d55ce7cc114356846a0ee5e956", "type": "github" }, "original": { @@ -347,26 +397,27 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1732014248, - "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "lastModified": 1747179050, + "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", + "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "NixOS", "ref": "nixos-unstable", - "type": "indirect" + "repo": "nixpkgs", + "type": "github" } }, "nixpkgs_5": { "locked": { - "lastModified": 1745391562, - "narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", + "lastModified": 1747179050, + "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", + "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", "type": "github" }, "original": { @@ -378,11 +429,11 @@ }, "nixpkgs_6": { "locked": { - "lastModified": 1745930157, - "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", + "lastModified": 1747179050, + "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", + "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", "type": "github" }, "original": { @@ -462,15 +513,15 @@ "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat_2", - "gitignore": "gitignore", + "gitignore": "gitignore_2", "nixpkgs": "nixpkgs_8" }, "locked": { - "lastModified": 1742649964, - "narHash": "sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco=", + "lastModified": 1746537231, + "narHash": "sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS+noCWo=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "dcf5072734cb576d2b0c59b2ac44f5050b5eac82", + "rev": "fa466640195d38ec97cf0493d6d6882bc4d14969", "type": "github" }, "original": { @@ -499,11 +550,11 @@ "nixpkgs": "nixpkgs_9" }, "locked": { - "lastModified": 1745310711, - "narHash": "sha256-ePyTpKEJTgX0gvgNQWd7tQYQ3glIkbqcW778RpHlqgA=", + "lastModified": 1746485181, + "narHash": "sha256-PxrrSFLaC7YuItShxmYbMgSuFFuwxBB+qsl9BZUnRvg=", "owner": "Mic92", "repo": "sops-nix", - "rev": "5e3e92b16d6fdf9923425a8d4df7496b2434f39c", + "rev": "e93ee1d900ad264d65e9701a5c6f895683433386", "type": "github" }, "original": { @@ -515,11 +566,11 @@ "sweet-ambar-blue": { "flake": false, "locked": { - "lastModified": 1745099863, - "narHash": "sha256-szZ/y/gLnGzTfAIg2pGBhy4axMJ49zGMVolhPTMGzKc=", + "lastModified": 1745873764, + "narHash": "sha256-yr/ACZgtpp7M5YqANffxMbDqldmvrGH8w5zNzfZKliY=", "ref": "Ambar-Blue", - "rev": "b54cc159a43644dadf92cf88d81f77606ae46bb6", - "revCount": 329, + "rev": "3a6846b4095b8944aa3acac6b91a1abe85ab5591", + "revCount": 330, "type": "git", "url": "https://github.com/EliverLara/Sweet" }, @@ -532,11 +583,11 @@ "sweet-ambar-blue-dark": { "flake": false, "locked": { - "lastModified": 1745099718, - "narHash": "sha256-8zv645W69igfRmKsxXIFz6E3mFmx+ewNZWhm6N/JJ0I=", + "lastModified": 1745873775, + "narHash": "sha256-n2WqXxKTtzgdQ9lHSv+oTmmLEtdqTBCuSNGVfJi6l5c=", "ref": "Ambar-Blue-Dark", - "rev": "16760c356de1d87601064bcbd9d6c81a60e61d2c", - "revCount": 413, + "rev": "9d3cd40250ac6ef680195f95db7f9f3099166bc7", + "revCount": 414, "type": "git", "url": "https://github.com/EliverLara/Sweet" }, diff --git a/linux/blitzar/configuration.nix b/linux/blitzar/configuration.nix deleted file mode 100644 index 5d1c55c..0000000 --- a/linux/blitzar/configuration.nix +++ /dev/null @@ -1,47 +0,0 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). -{pkgs, ...}: { - # Configure boot - boot = { - initrd.systemd.enable = true; - loader = { - efi.canTouchEfiVariables = true; - grub = let - yorha = pkgs.yorha-grub-theme; - in { - enable = true; - device = "nodev"; - efiSupport = true; - splashImage = "${yorha}/background.png"; - theme = yorha; - }; - }; - plymouth = { - enable = true; - extraConfig = "DeviceScale=1"; - theme = "target_2"; - themePackages = [pkgs.adi1090x-plymouth-themes]; - }; - }; - - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "24.05"; # Did you read the comment? -} diff --git a/linux/blitzar/default.nix b/linux/blitzar/default.nix deleted file mode 100644 index efaa3d2..0000000 --- a/linux/blitzar/default.nix +++ /dev/null @@ -1,16 +0,0 @@ -{inputs, ...}: { - imports = with inputs; [ - disko.nixosModules.default - hardware.nixosModules.asus-zephyrus-ga402 - ../../common - ./configuration.nix - ./device.nix - ./disko.nix - ./gui.nix - ./hardware-configuration.nix - ./network.nix - ./syncthing.nix - ./tailscale.nix - ./zfs.nix - ]; -} diff --git a/linux/blitzar/device.nix b/linux/blitzar/device.nix deleted file mode 100644 index 26a6a8a..0000000 --- a/linux/blitzar/device.nix +++ /dev/null @@ -1,101 +0,0 @@ -{ - config, - pkgs, - ... -}: let - userName = config.constants.userName; -in { - hardware = { - bluetooth.enable = true; - graphics.enable = true; - keyboard.qmk.enable = true; - openrazer = { - enable = true; - users = [userName]; - }; - }; - - programs = { - adb.enable = true; - kdeconnect.enable = true; - noisetorch.enable = true; - }; - - security.rtkit.enable = true; - - services = { - automatic-timezoned.enable = true; - avahi = { - enable = true; - nssmdns4 = true; - openFirewall = true; - }; - fwupd.enable = true; - kanata = { - enable = true; - keyboards.core = { - devices = ["/dev/input/by-id/usb-ASUSTeK_Computer_Inc._N-KEY_Device-if02-event-kbd"]; - config = '' - (defsrc - esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del - grv 1 2 3 4 5 6 7 8 9 0 - = bspc - tab q w e r t y u i o p [ ] \ - caps a s d f g h j k l ; ' ret - lsft z x c v b n m , . / rsft up - lctl lmet lalt spc ralt rctl left down rght - ) - (deflayer base - _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ _ _ _ _ _ _ _ _ - _ _ _ _ _ @li _ _ _ - ) - (deflayer index - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX @lb XX @lm XX XX XX XX XX - XX XX XX XX XX XX XX XX XX - ) - (deflayer media - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX XX XX XX XX XX - XX XX XX XX XX XX XX XX prev next XX XX XX - XX XX XX pp XX @li XX XX XX - ) - (defalias - li (layer-toggle index) - lb (layer-switch base) - lm (layer-switch media) - ) - ''; - }; - }; - - pipewire = { - enable = true; - alsa = { - enable = true; - support32Bit = true; - }; - pulse.enable = true; - }; - printing.enable = true; - udev.packages = [pkgs.via]; - }; - - users.users.${userName}.extraGroups = ["adbusers" "cdrom"]; - - virtualisation = { - containers.enable = true; - podman = { - enable = true; - dockerCompat = true; - }; - }; -} diff --git a/linux/blitzar/disko.nix b/linux/blitzar/disko.nix deleted file mode 100644 index ff23b44..0000000 --- a/linux/blitzar/disko.nix +++ /dev/null @@ -1,78 +0,0 @@ -{...}: { - disko.devices = { - # Partition the physical disk - disk.storage = { - device = "/dev/nvme0n1"; - content = { - type = "gpt"; - partitions = { - esp = { - size = "2G"; - type = "ef00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - zfs = { - size = "100%"; - content = { - type = "zfs"; - pool = "zroot"; - }; - }; - }; - }; - }; - - # Construct the primary zfs pool for this system. - zpool.zroot = { - type = "zpool"; - options = { - ashift = "12"; - autotrim = "on"; - listsnapshots = "on"; - }; - rootFsOptions = { - acltype = "posix"; - atime = "off"; - compression = "zstd"; - dnodesize = "auto"; - mountpoint = "none"; - normalization = "formD"; - xattr = "sa"; - }; - datasets = { - # Encrypt main dataset - main = { - type = "zfs_fs"; - options = { - encryption = "on"; - keyformat = "passphrase"; - }; - }; - # Create dataset for home - "main/home" = { - type = "zfs_fs"; - mountpoint = "/home"; - }; - # Create dataset for nix store - "main/nix" = { - type = "zfs_fs"; - mountpoint = "/nix"; - }; - # Create dataset for root - "main/root" = { - type = "zfs_fs"; - mountpoint = "/"; - }; - # Reserve space for performance - reservation = { - type = "zfs_fs"; - options.refreservation = "256G"; - }; - }; - }; - }; -} diff --git a/linux/blitzar/gui.nix b/linux/blitzar/gui.nix deleted file mode 100644 index cede366..0000000 --- a/linux/blitzar/gui.nix +++ /dev/null @@ -1,160 +0,0 @@ -{ - config, - pkgs, - ... -}: let - userName = config.constants.userName; -in { - home-manager.users.${userName} = { - config, - pkgs, - ... - }: let - xdgCfg = config.xdg; - in { - home.packages = with pkgs; [ - element-desktop - feishin - jellyfin-mpv-shim - joplin-desktop - lutris - nvtopPackages.amd - picard - qbittorrent - razergenie - ryujinx - telegram-desktop - thunderbird - via - winetricks - wineWowPackages.stagingFull - ]; - programs = { - git.signing = { - key = "0x6A815D4CB1637AAC"; - signByDefault = true; - }; - gpg = { - enable = true; - homedir = "${xdgCfg.dataHome}/gnupg"; - }; - mpv = { - enable = true; - config = { - osd-bar = "no"; - border = "no"; - }; - scripts = with pkgs.mpvScripts; [ - mpris - thumbfast - uosc - vr-reversal - ]; - }; - obs-studio.enable = true; - plasma.input.touchpads = [ - { - enable = false; - name = "ASUE120A:00 04F3:319B Touchpad"; - productId = "319B"; - vendorId = "04F3"; - } - ]; - zathura = { - enable = true; - options = { - completion-bg = "#504945"; - completion-fg = "#ebdbb2"; - completion-group-bg = "#3c3836"; - completion-group-fg = "#928374"; - completion-highlight-bg = "#83a598"; - completion-highlight-fg = "#504945"; - default-bg = "#1d2021"; - default-fg = "#ebdbb2"; - highlight-active-color = "#fe8019"; - highlight-color = "#fabd2f"; - index-active-bg = "#83a598"; - index-active-fg = "#504945"; - index-bg = "#504945"; - index-fg = "#ebdbb2"; - inputbar-bg = "#1d2021"; - inputbar-fg = "#ebdbb2"; - notification-bg = "#1d2021"; - notification-error-bg = "#1d2021"; - notification-error-fg = "#fb4934"; - notification-fg = "#b8bb26"; - notification-warning-bg = "#1d2021"; - notification-warning-fg = "#fabd2f"; - recolor = "true"; - recolor-darkcolor = "#ebdbb2"; - recolor-keephue = "true"; - recolor-lightcolor = "#1d2021"; - render-loading = "true"; - render-loading-bg = "#1d2021"; - render-loading-fg = "#ebdbb2"; - selection-clipboard = "clipboard"; - statusbar-bg = "#504945"; - statusbar-fg = "#ebdbb2"; - }; - }; - }; - services = { - easyeffects.enable = true; - gpg-agent = { - enable = true; - pinentryPackage = pkgs.pinentry-qt; - }; - xsettingsd = { - enable = true; - settings = { - "Gdk/UnscaledDPI" = 98304; - "Gdk/WindowScalingFactor" = 2; - "Gtk/EnableAnimations" = 1; - "Gtk/DecorationLayout" = "icon:minimize,maximize,close"; - "Net/ThemeName" = "Sweet-Ambar-Blue"; - "Gtk/PrimaryButtonWarpsSlider" = 1; - "Gtk/ToolbarStyle" = 3; - "Gtk/MenuImages" = 1; - "Gtk/ButtonImages" = 1; - "Gtk/CursorThemeSize" = 96; - "Gtk/CursorThemeName" = "Sweet-cursors"; - "Net/SoundThemeName" = "yorha"; - "Net/IconThemeName" = "Sweet-Rainbow"; - "Gtk/FontName" = "Noto Sans, 10"; - }; - }; - }; - }; - - i18n.inputMethod = { - enable = true; - type = "fcitx5"; - fcitx5.addons = with pkgs; [fcitx5-nord fcitx5-rime]; - }; - - programs = { - dconf.enable = true; - # TODO: Enable when it's fixed - kde-pim = { - enable = true; - merkuro = true; - }; - partition-manager.enable = true; - steam.enable = true; - }; - - services = { - desktopManager.plasma6.enable = true; - displayManager = { - autoLogin.user = userName; - sddm = { - enable = true; - wayland.enable = true; - }; - }; - xserver = { - enable = true; - videoDrivers = ["amdgpu"]; - }; - }; -} diff --git a/linux/blitzar/hardware-configuration.nix b/linux/blitzar/hardware-configuration.nix deleted file mode 100644 index 2811bc2..0000000 --- a/linux/blitzar/hardware-configuration.nix +++ /dev/null @@ -1,29 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-amd"]; - boot.extraModulePackages = []; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/linux/blitzar/network.nix b/linux/blitzar/network.nix deleted file mode 100644 index 345c2c8..0000000 --- a/linux/blitzar/network.nix +++ /dev/null @@ -1,11 +0,0 @@ -{...}: { - networking = { - hostId = "30f8f777"; - networkmanager = { - enable = true; - wifi.backend = "iwd"; - }; - nftables.enable = true; - wireless.iwd.enable = true; - }; -} diff --git a/linux/blitzar/syncthing.nix b/linux/blitzar/syncthing.nix deleted file mode 100644 index a6d7833..0000000 --- a/linux/blitzar/syncthing.nix +++ /dev/null @@ -1,21 +0,0 @@ -{...}: { - services.syncthing = { - # enable = true; - settings.folders = { - game-data = { - devices = ["protostar"]; - path = "~/Game/data"; - type = "sendonly"; - }; - game-save = { - devices = ["protostar"]; - path = "~/Game/save"; - }; - music = { - devices = ["nebula"]; - path = "~/Music"; - type = "sendonly"; - }; - }; - }; -} diff --git a/linux/blitzar/tailscale.nix b/linux/blitzar/tailscale.nix deleted file mode 100644 index 2a86b76..0000000 --- a/linux/blitzar/tailscale.nix +++ /dev/null @@ -1,7 +0,0 @@ -{...}: { - services.tailscale = { - enable = true; - port = 22276; - useRoutingFeatures = "client"; - }; -} diff --git a/linux/blitzar/zfs.nix b/linux/blitzar/zfs.nix deleted file mode 100644 index 4e0c76e..0000000 --- a/linux/blitzar/zfs.nix +++ /dev/null @@ -1,91 +0,0 @@ -{ - config, - lib, - ... -}: { - boot.loader.grub.zfsSupport = true; - - services.zfs = { - autoScrub.enable = true; - trim.enable = true; - }; - - services.zrepl = { - enable = true; - settings = { - global = { - logging = [ - { - type = "syslog"; - level = "info"; - format = "human"; - } - ]; - }; - jobs = [ - { - name = "snapshot"; - type = "snap"; - filesystems = {"zroot/main/home" = true;}; - snapshotting = { - type = "periodic"; - prefix = "zrepl-"; - interval = "1h"; - }; - pruning = { - keep = [ - { - type = "grid"; - regex = "^zrepl-.*"; - grid = lib.concatStringsSep " | " ["1x1h(keep=all)" "24x1h" "7x1d" "4x1w"]; - } - ]; - }; - } - { - name = "push-to-local-drive"; - type = "push"; - send = {encrypted = true;}; - connect = { - type = "local"; - listener_name = "sink-to-local-drive"; - client_identity = config.networking.hostName; - }; - filesystems = {"zroot/main/home" = true;}; - replication = { - protection = { - initial = "guarantee_resumability"; - incremental = "guarantee_incremental"; - }; - }; - snapshotting = {type = "manual";}; - pruning = { - keep_sender = [ - { - type = "regex"; - regex = ".*"; - } - ]; - keep_receiver = [ - { - type = "grid"; - regex = "^zrepl-.*"; - grid = lib.concatStringsSep " | " ["1x1h(keep=all)" "30x1d" "52x1w"]; - } - ]; - }; - } - { - name = "sink-to-local-drive"; - type = "sink"; - recv = {placeholder = {encryption = "off";};}; - root_fs = "zbackup"; - serve = { - type = "local"; - listener_name = "sink-to-local-drive"; - }; - } - ]; - }; - }; -}