diff --git a/demilich. b/demilich. new file mode 100644 index 0000000..e69de29 diff --git a/configuration.nix b/demilich/configuration.nix similarity index 86% rename from configuration.nix rename to demilich/configuration.nix index 0fbdd96..14e7ed5 100644 --- a/configuration.nix +++ b/demilich/configuration.nix @@ -2,21 +2,28 @@ # 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, ... }: +{ + config, + lib, + pkgs, + ... +}: { - imports = - [ - ./hardware-configuration.nix - ./services.nix - ./packages.nix - ./security.nix - ]; + imports = [ + ./hardware-configuration.nix + ../services.nix + ../packages.nix + ../security.nix + ]; # Enable flakes and nix-command nix = { settings = { - experimental-features = [ "nix-command" "flakes" ]; + experimental-features = [ + "nix-command" + "flakes" + ]; }; }; nixpkgs.config.permittedInsecurePackages = [ @@ -27,10 +34,10 @@ boot = { loader = { limine = { - efiSupport = true; + efiSupport = true; enable = true; - enableEditor = true; - maxGenerations = 10; + enableEditor = true; + maxGenerations = 10; }; efi = { canTouchEfiVariables = true; @@ -64,7 +71,10 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.stobbsm = { isNormalUser = true; - extraGroups = [ "wheel" "seat" ]; # Enable ‘sudo’ for the user. + extraGroups = [ + "wheel" + "seat" + ]; # Enable ‘sudo’ for the user. shell = pkgs.zsh; }; diff --git a/hardware-configuration.nix b/demilich/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to demilich/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index a7e3338..49f8759 100644 --- a/flake.nix +++ b/flake.nix @@ -6,11 +6,12 @@ # Use `nix flake update` to update the flake to the latest revision of the chosen release channel. nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; }; - outputs = inputs@{ self, nixpkgs, ... }: { - # NOTE: 'nixos' is the default hostname - nixosConfigurations."demilich" = nixpkgs.lib.nixosSystem { - modules = [ ./configuration.nix ]; + outputs = + inputs@{ self, nixpkgs, ... }: + { + # NOTE: 'nixos' is the default hostname + nixosConfigurations."demilich" = nixpkgs.lib.nixosSystem { + modules = [ ./demilich/configuration.nix ]; + }; }; - }; } -