diff --git a/flake.nix b/flake.nix index cbec6c8..06cf049 100644 --- a/flake.nix +++ b/flake.nix @@ -39,5 +39,11 @@ ./hosts/saberofxebec/configuration.nix ]; }; + nixosConfigurations.karasumaru = nixpkgs-stable.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + ./hosts/karasumaru/configuration.nix + ]; + }; }; } diff --git a/hosts/karasumaru/configuration.nix b/hosts/karasumaru/configuration.nix index 8fd83b8..1ba69ca 100644 --- a/hosts/karasumaru/configuration.nix +++ b/hosts/karasumaru/configuration.nix @@ -1,14 +1,16 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - -{ config, lib, pkgs, ... }: - { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; + config, + lib, + pkgs, + ... +}: { + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) boot.loader.grub.enable = false; @@ -19,7 +21,6 @@ time.timeZone = "Europe/Vienna"; - environment.systemPackages = with pkgs; [ vim wget @@ -35,6 +36,4 @@ }; system.stateVersion = "24.11"; - } - diff --git a/hosts/karasumaru/hardware-configuration.nix b/hosts/karasumaru/hardware-configuration.nix index cdeab07..d6e0a14 100644 --- a/hosts/karasumaru/hardware-configuration.nix +++ b/hosts/karasumaru/hardware-configuration.nix @@ -1,30 +1,34 @@ # 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") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = []; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; - fileSystems."/mnt" = - { device = "/dev/disk/by-uuid/2178-694E"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/mnt" = { + device = "/dev/disk/by-uuid/2178-694E"; + fsType = "vfat"; + options = ["fmask=0022" "dmask=0022"]; + }; - swapDevices = [ ]; + swapDevices = []; # 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