modularise home conf

This commit is contained in:
atagen 2023-09-28 13:15:38 +10:00
parent b07d950147
commit 4477d0d4a2
23 changed files with 1152 additions and 855 deletions

View file

@ -20,6 +20,7 @@
outputs.overlays.rice
inputs.helix.overlays.default
inputs.persway.overlays.default
inputs.nixd.overlays.default
# inputs.eww.overlays.default
];
config = {
@ -42,7 +43,6 @@
};
imports = [
];
nix.extraOptions = ''
@ -92,10 +92,11 @@
backend = "wayland";
package = inputs.qtile.packages.x86_64-linux.default;
configFile = null; # using hm instead
extraPackages = python3Packages: with python3Packages; [
pkgs.stable.python3Packages.qtile-extras
coconut
];
extraPackages = python3Packages:
with python3Packages; [
pkgs.stable.python3Packages.qtile-extras
coconut
];
};
services.greetd = {
@ -152,6 +153,7 @@
man-pages-posix
rnix-lsp
nixd
tailscale
@ -165,7 +167,7 @@
git
nix-index
comma
# comma
starship
cachix

View file

@ -16,7 +16,7 @@
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "i2c-dev"];
boot.kernelParams = [
"nvidia_drm.modeset=1"
"nvidia_drm.modeset=1"
"mitigations=off"
"acpi_enforce_resources=lax"
"preempt=full"
@ -110,10 +110,10 @@
extraGroups = ["wheel" "podman" "docker"]; # Enable sudo for the user.
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b993b463-c131-4ef1-9aba-0e3eadaa2f9a";
fsType = "btrfs";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/b993b463-c131-4ef1-9aba-0e3eadaa2f9a";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6B75-AF9F";
@ -126,10 +126,9 @@
options = ["rw" "uid=1000" "gid=100"];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/9c006925-e0e9-4165-bc0c-508ae2d1bfce"; }
];
swapDevices = [
{device = "/dev/disk/by-uuid/9c006925-e0e9-4165-bc0c-508ae2d1bfce";}
];
networking.nftables.enable = true;
networking.firewall = {