Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

AUTOFORMAT: Nix files

+86 -28
+9 -1
flake.nix
··· 12 12 pre-commit-hooks.url = "github:cachix/git-hooks.nix"; 13 13 }; 14 14 15 - outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, pre-commit-hooks, ... }: 15 + outputs = 16 + { 17 + self, 18 + nixpkgs, 19 + nixpkgs-unstable, 20 + home-manager, 21 + pre-commit-hooks, 22 + ... 23 + }: 16 24 let 17 25 system = "aarch64-darwin"; 18 26 pkgs = nixpkgs.legacyPackages.${system};
+55 -22
hardware-configuration.nix
··· 1 1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 2 # and may be overwritten by future invocations. Please make changes 3 3 # to /etc/nixos/configuration.nix instead. 4 - { config, lib, modulesPath, pkgs, ... }: 4 + { 5 + config, 6 + lib, 7 + modulesPath, 8 + pkgs, 9 + ... 10 + }: 5 11 6 12 { 7 - imports = 8 - [ 9 - (modulesPath + "/installer/scan/not-detected.nix") 10 - ]; 13 + imports = [ 14 + (modulesPath + "/installer/scan/not-detected.nix") 15 + ]; 11 16 12 17 boot.kernelPackages = pkgs.linuxPackages_latest; 13 - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 14 - boot.initrd.kernelModules = [ "kvm-amd" "amdgpu" "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 15 - boot.kernelModules = [ "kvm-amd" "amdgpu" "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 18 + boot.initrd.availableKernelModules = [ 19 + "nvme" 20 + "xhci_pci" 21 + "thunderbolt" 22 + "usb_storage" 23 + "usbhid" 24 + "sd_mod" 25 + "sdhci_pci" 26 + ]; 27 + boot.initrd.kernelModules = [ 28 + "kvm-amd" 29 + "amdgpu" 30 + "nvme" 31 + "xhci_pci" 32 + "thunderbolt" 33 + "usb_storage" 34 + "usbhid" 35 + "sd_mod" 36 + "sdhci_pci" 37 + ]; 38 + boot.kernelModules = [ 39 + "kvm-amd" 40 + "amdgpu" 41 + "nvme" 42 + "xhci_pci" 43 + "thunderbolt" 44 + "usb_storage" 45 + "usbhid" 46 + "sd_mod" 47 + "sdhci_pci" 48 + ]; 16 49 virtualisation.libvirtd = { 17 50 enable = true; 18 51 qemu = { ··· 27 60 28 61 hardware.enableRedistributableFirmware = true; 29 62 30 - fileSystems."/" = 31 - { 32 - device = "/dev/disk/by-uuid/07019c69-2597-410d-a8a0-a8ffb0f58883"; 33 - fsType = "ext4"; 34 - }; 63 + fileSystems."/" = { 64 + device = "/dev/disk/by-uuid/07019c69-2597-410d-a8a0-a8ffb0f58883"; 65 + fsType = "ext4"; 66 + }; 35 67 36 - fileSystems."/boot" = 68 + fileSystems."/boot" = { 69 + device = "/dev/disk/by-uuid/4B85-C90A"; 70 + fsType = "vfat"; 71 + }; 72 + 73 + swapDevices = [ 37 74 { 38 - device = "/dev/disk/by-uuid/4B85-C90A"; 39 - fsType = "vfat"; 40 - }; 41 - 42 - swapDevices = [{ 43 - device = "/swapfile"; 44 - size = 32 * 1024; 45 - }]; 75 + device = "/swapfile"; 76 + size = 32 * 1024; 77 + } 78 + ]; 46 79 47 80 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 48 81 # (the default) this is the recommended approach. When using systemd-networkd it's
+10 -3
home.nix
··· 7 7 nix = { 8 8 package = pkgs.nix; 9 9 settings = { 10 - experimental-features = [ "nix-command" "flakes" ]; 10 + experimental-features = [ 11 + "nix-command" 12 + "flakes" 13 + ]; 11 14 #substituters = [ 12 15 # "http://cache.misaki.local" 13 16 #]; ··· 59 62 #unstable.tcl 60 63 #unstable.tk 61 64 #unstable.tclPackages.tclx 62 - 63 65 64 66 # Dev tools 65 67 git ··· 177 179 defaultEditor = true; 178 180 withNodeJs = false; 179 181 withPython3 = true; 180 - extraPackages = with pkgs; [ fzf ripgrep luarocks tree-sitter ]; 182 + extraPackages = with pkgs; [ 183 + fzf 184 + ripgrep 185 + luarocks 186 + tree-sitter 187 + ]; 181 188 }; 182 189 programs.git = { 183 190 enable = true;
+12 -2
networking.nix
··· 54 54 "/srv/shokuhou" = { 55 55 device = "192.168.1.3:/srv/shokuhou"; 56 56 fsType = "nfs"; 57 - options = [ "nfsvers=4" "user" "x-system.automount" "x-system.idle-timeout=600" ]; 57 + options = [ 58 + "nfsvers=4" 59 + "user" 60 + "x-system.automount" 61 + "x-system.idle-timeout=600" 62 + ]; 58 63 }; 59 64 "/srv/mentalout" = { 60 65 device = "192.168.1.3:/srv/mentalout"; 61 66 fsType = "nfs"; 62 - options = [ "nfsvers=4" "user" "x-system.automount" "x-system.idle-timeout=600" ]; 67 + options = [ 68 + "nfsvers=4" 69 + "user" 70 + "x-system.automount" 71 + "x-system.idle-timeout=600" 72 + ]; 63 73 }; 64 74 }; 65 75 }