diff --git a/flake.nix b/flake.nix index d25762f..91682b3 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,23 @@ } ]; }; + + oreo = nixpkgs.lib.nixosSystem { + inherit system; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/oreo + home-manager.nixosModules.home-manager + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.alex = import ./home/alex; + extraSpecialArgs = { inherit inputs; }; + }; + } + ]; + }; }; }; } diff --git a/hosts/oreo/default.nix b/hosts/oreo/default.nix new file mode 100644 index 0000000..f647783 --- /dev/null +++ b/hosts/oreo/default.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: { + imports = [ + ./hardware.nix + ../../modules/core.nix + ../../modules/plasma.nix + ../../modules/security.nix + ]; + + networking.hostName = "oreo"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.kernelPackages = pkgs.linuxPackages_latest; + + networking.networkmanager.enable = true; + + programs.zsh.enable = true; + + users.users.alex = { + isNormalUser = true; + shell = pkgs.zsh; + extraGroups = [ "wheel" "networkmanager" ]; + }; + + system.stateVersion = "25.11"; +} diff --git a/hosts/oreo/hardware.nix b/hosts/oreo/hardware.nix new file mode 100644 index 0000000..7e08360 --- /dev/null +++ b/hosts/oreo/hardware.nix @@ -0,0 +1,33 @@ +# 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 = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/5a8d96fe-20a7-40e8-bb27-f42f462123fc"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9A43-44E9"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/021c3b9a-3d3b-4eab-ad72-c878bc39bfd5"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/scripts/list-hosts.py b/scripts/list-hosts.py old mode 100644 new mode 100755 diff --git a/scripts/register-host.py b/scripts/register-host.py old mode 100644 new mode 100755