From 22d0e34139ef37c31fcd0b96d5b0fbee4596abb3 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sat, 7 Mar 2026 15:46:09 -0500 Subject: [PATCH] fix: docker rootless now works due to /etc/hosts permissions change --- configuration.nix | 7 ++----- err.log | 32 ++++++++++++++++++++++++++++++++ flake.lock | 15 ++++++++------- flake.nix | 30 ++++++++++++++++++++---------- 4 files changed, 62 insertions(+), 22 deletions(-) create mode 100644 err.log diff --git a/configuration.nix b/configuration.nix index c606e0c..043bbb7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,7 +8,6 @@ imports = [ # Include the results of the hardware scan. /etc/nixos/hardware-configuration.nix - ]; ## Commented out as defined at the end of the page @@ -94,9 +93,7 @@ linger = true; extraGroups = [ "networkmanager" "wheel" "docker" "dialout" ]; }; - - home-manager.users.l-wyatt = import /home/l-wyatt/.config/home-manager/home.nix; - + nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget @@ -157,7 +154,7 @@ services.blueman.enable = true; # Allow /etc/hosts to be modified without system rebuild - environment.etc.hosts.mode = "0700"; + environment.etc.hosts.mode = "0644"; # Enable flakes and extras nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/err.log b/err.log new file mode 100644 index 0000000..7a968ab --- /dev/null +++ b/err.log @@ -0,0 +1,32 @@ +building the system configuration... +error: + … while calling the 'head' builtin + at /nix/store/j4hbw1ws742nmsfhbd9r22k1qgivk7hc-nixos-25.11/nixos/lib/attrsets.nix:1696:13: + 1695| if length values == 1 || pred here (elemAt values 1) (head values) then + 1696| head values + | ^ + 1697| else + + … while evaluating the attribute 'value' + at /nix/store/j4hbw1ws742nmsfhbd9r22k1qgivk7hc-nixos-25.11/nixos/lib/modules.nix:1118:7: + 1117| // { + 1118| value = addErrorContext "while evaluating the option `${showOption loc}':" value; + | ^ + 1119| inherit (res.defsFinal') highestPrio; + + … while evaluating the option `system.build.toplevel': + + … while evaluating definitions from `/nix/store/j4hbw1ws742nmsfhbd9r22k1qgivk7hc-nixos-25.11/nixos/nixos/modules/system/activation/top-level.nix': + + … while evaluating the option `assertions': + + … while evaluating definitions from `/nix/store/qlchl88ml287pcv5xqyrpcq7jjyl3qgm-home-manager-25.11.tar.gz/home-manager/nixos/common.nix': + + (stack trace truncated; use '--show-trace' to show the full, detailed trace) + + error: The option `home-manager.users.l-wyatt.programs.neovim-kickstart' does not exist. Definition values: + - In `/home/l-wyatt/Documents/nixos-configuration/configuration.nix': + { + enable = true; + } +Command 'nix-build '' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 1. diff --git a/flake.lock b/flake.lock index 1fe054b..2966895 100644 --- a/flake.lock +++ b/flake.lock @@ -25,15 +25,16 @@ ] }, "locked": { - "lastModified": 1771531206, - "narHash": "sha256-1R3Wx6KUkMb4x4E5UOhW9p6rqiexzSGGWxZqSHqW5n0=", + "lastModified": 1772633058, + "narHash": "sha256-SO7JapRy2HPhgmqiLbfnW1kMx5rakPMKZ9z3wtRLQjI=", "owner": "nix-community", "repo": "home-manager", - "rev": "91be7cce763fa4022c7cf025a71b0c366d1b6e77", + "rev": "080657a04188aca25f8a6c70a0fb2ea7e37f1865", "type": "github" }, "original": { "owner": "nix-community", + "ref": "release-25.11", "repo": "home-manager", "type": "github" } @@ -75,16 +76,16 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1771369470, - "narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=", + "lastModified": 1772822230, + "narHash": "sha256-yf3iYLGbGVlIthlQIk5/4/EQDZNNEmuqKZkQssMljuw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "0182a361324364ae3f436a63005877674cf45efb", + "rev": "71caefce12ba78d84fe618cf61644dce01cf3a96", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-unstable", + "ref": "nixos-25.11", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 0305c5b..3857278 100644 --- a/flake.nix +++ b/flake.nix @@ -1,23 +1,33 @@ { - description = "Home Manager configuration with kickstart.nvim"; + description = "NixOS configuration with home-manager and kickstart.nvim"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; home-manager = { - url = "github:nix-community/home-manager"; + url = "github:nix-community/home-manager/release-25.11"; inputs.nixpkgs.follows = "nixpkgs"; }; kickstart-nvim.url = "github:0xWheatyz/kickstart.nvim"; }; - outputs = { nixpkgs, home-manager, kickstart-nvim, ... }: { - homeConfigurations = { - "l-wyatt" = home-manager.lib.homeManagerConfiguration { - pkgs = nixpkgs.legacyPackages.x86_64-linux; - + outputs = { self, nixpkgs, home-manager, kickstart-nvim, ... }: { + nixosConfigurations = { + nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; modules = [ - ./home.nix - kickstart-nvim.homeManagerModules.default + ./configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.l-wyatt = import /home/l-wyatt/.config/home-manager/home.nix; + home-manager.extraSpecialArgs = { + inherit kickstart-nvim; + }; + home-manager.sharedModules = [ + kickstart-nvim.homeManagerModules.default + ]; + } ]; }; };