diff options
Diffstat (limited to 'machines/git')
| -rw-r--r-- | machines/git/configuration.nix | 29 | ||||
| -rw-r--r-- | machines/git/hardware-configuration.nix | 26 | ||||
| -rw-r--r-- | machines/git/home.nix | 19 |
3 files changed, 74 insertions, 0 deletions
diff --git a/machines/git/configuration.nix b/machines/git/configuration.nix new file mode 100644 index 0000000..7024d7e --- /dev/null +++ b/machines/git/configuration.nix @@ -0,0 +1,29 @@ +{ lib, inputs, pkgs, ... }: + +let + drive = "/dev/nvme0n1"; +in { + imports = [ + ./hardware-configuration.nix + inputs.home-manager.nixosModules.default + + (import ../../disko.nix { device = drive; }) + + ] ++ (map (path: ../../modules/${path}) [ + "core/global.nix" + "core/impermanence.nix" + "git/compromyse.nix" + ]); + + networking.hostName = "git"; + + programs.fuse.userAllowOther = true; + home-manager = { + extraSpecialArgs = { inherit inputs; }; + useGlobalPkgs = true; + useUserPackages = true; + users = { + "compromyse" = import ./home.nix; + }; + }; +} diff --git a/machines/git/hardware-configuration.nix b/machines/git/hardware-configuration.nix new file mode 100644 index 0000000..8c8749c --- /dev/null +++ b/machines/git/hardware-configuration.nix @@ -0,0 +1,26 @@ +# 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" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + 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.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/machines/git/home.nix b/machines/git/home.nix new file mode 100644 index 0000000..82852c0 --- /dev/null +++ b/machines/git/home.nix @@ -0,0 +1,19 @@ +{ inputs, pkgs, ... }: + +{ + home = { + username = "compromyse"; + homeDirectory = "/home/compromyse"; + }; + + home.packages = with pkgs; [ + git-lfs + ]; + + imports = (map (path: ../../config/${path}) [ + "bash.nix" + "git" + ]); + + home.stateVersion = "23.11"; +} |
