diff --git a/README.md b/README.md index bd8b8f2..4c633ac 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ # molly's nixos config + +NixOS configuration for `chi`, managed with Flakes and Home Manager. + +## rebuild + +```bash +sudo nixos-rebuild switch --flake .#chi +``` + +## structure + +- `flake.nix` — entry point; defines the `chi` NixOS configuration and wires in Home Manager +- `configuration.nix` — system-level NixOS settings +- `hardware-configuration.nix` — hardware settings generated by `nixos-generate-config` +- `home.nix` — Home Manager settings for user `mollyw` +- `flake.lock` — pinned flake inputs + +## updating inputs + +```bash +nix flake update +sudo nixos-rebuild switch --flake .#chi +``` diff --git a/configuration.nix b/configuration.nix index b7fb45b..8cbf746 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,7 @@ boot.loader.efi.canTouchEfiVariables = true; # System configuration - networking.hostName = "nixos"; + networking.hostName = "chi"; nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Networking @@ -78,4 +78,4 @@ # System state version system.stateVersion = "26.05"; -} \ No newline at end of file +} diff --git a/flake.nix b/flake.nix index 8385517..ebbbddc 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ outputs = inputs@{ nixpkgs, home-manager, ... }: { nixosConfigurations = { chi = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; modules = [ ./configuration.nix home-manager.nixosModules.home-manager diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 6814e15..511c8fc 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -1,5 +1,5 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes +# 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, ... }: diff --git a/home.nix b/home.nix index 46c1e94..a582984 100644 --- a/home.nix +++ b/home.nix @@ -9,17 +9,6 @@ }: { imports = [ ]; - nixpkgs = { - overlays = [ - inputs.self.overlays.additions - inputs.self.overlays.modifications - inputs.self.overlays.unstable-packages - ]; - config = { - allowUnfree = true; - }; - }; - home = { username = "mollyw"; homeDirectory = "/home/mollyw"; @@ -29,8 +18,10 @@ home-manager.enable = true; git = { enable = true; - userName = "molly.computer"; - userEmail = "molly@molly.computer"; + settings.user = { + name = "molly.computer"; + email = "molly@molly.computer"; + }; }; };