diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e831393 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build.log +flake.lock diff --git a/build.log b/build.log deleted file mode 100644 index 8f176b1..0000000 --- a/build.log +++ /dev/null @@ -1,719 +0,0 @@ -warning: Git tree '/home/ii/Software/git/nix/confix' is dirty -Using saved setting for 'experimental-features = nix-command flakes' from ~/.local/share/nix/trusted-settings.json. -building the system configuration... -warning: Git tree '/home/ii/Software/git/nix/confix' is dirty -Using saved setting for 'experimental-features = nix-command flakes' from ~/.local/share/nix/trusted-settings.json. -trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 -trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 -trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 -error: - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:846:24: - - 845| let f = attrPath: - 846| zipAttrsWith (n: values: - | ^ - 847| let here = attrPath ++ [n]; in - - … while calling 'g' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:629:19: - - 628| g = - 629| name: value: - | ^ - 630| if isAttrs value && cond value - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:632:20: - - 631| then recurse (path ++ [name]) value - 632| else f (path ++ [name]) value; - | ^ - 633| in mapAttrs g; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:242:72: - - 241| # For definitions that have an associated option - 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; - | ^ - 243| - - … while evaluating the option `system.build.toplevel': - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/top-level.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/top-level.nix:71:12: - - 70| # Replace runtime dependencies - 71| system = foldr ({ oldDependency, newDependency }: drv: - | ^ - 72| pkgs.replaceDependency { inherit oldDependency newDependency drv; } - - … while calling 'foldr' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:53:20: - - 52| */ - 53| foldr = op: nul: list: - | ^ - 54| let - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:60:8: - - 59| else op (elemAt list n) (fold' (n + 1)); - 60| in fold' 0; - | ^ - 61| - - … while calling 'fold'' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:56:15: - - 55| len = length list; - 56| fold' = n: - | ^ - 57| if n == len - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/top-level.nix:68:10: - - 67| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" - 68| else showWarnings config.warnings baseSystem; - | ^ - 69| - - … while calling 'showWarnings' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/trivial.nix:414:28: - - 413| - 414| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; - | ^ - 415| - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/trivial.nix:414:33: - - 413| - 414| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; - | ^ - 415| - - … while calling 'foldr' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:53:20: - - 52| */ - 53| foldr = op: nul: list: - | ^ - 54| let - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:60:8: - - 59| else op (elemAt list n) (fold' (n + 1)); - 60| in fold' 0; - | ^ - 61| - - … while calling 'fold'' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/lists.nix:56:15: - - 55| len = length list; - 56| fold' = n: - | ^ - 57| if n == len - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/top-level.nix:48:16: - - 47| # makes it bootable. See `activatable-system.nix`. - 48| baseSystem = pkgs.stdenvNoCC.mkDerivation ({ - | ^ - 49| name = "nixos-system-${config.system.name}-${config.system.nixos.label}"; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/pkgs/stdenv/generic/make-derivation.nix:548:3: - - 547| in - 548| fnOrAttrs: - | ^ - 549| if builtins.isFunction fnOrAttrs - - … while calling 'g' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:629:19: - - 628| g = - 629| name: value: - | ^ - 630| if isAttrs value && cond value - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:632:20: - - 631| then recurse (path ++ [name]) value - 632| else f (path ++ [name]) value; - | ^ - 633| in mapAttrs g; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:242:72: - - 241| # For definitions that have an associated option - 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; - | ^ - 243| - - … while evaluating the option `system.systemBuilderArgs': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:844:59: - - 843| if isDefined then - 844| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal - | ^ - 845| else let allInvalid = filter (def: ! type.check def.value) defsFinal; - - … while calling 'merge' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/types.nix:540:20: - - 539| check = isAttrs; - 540| merge = loc: defs: - | ^ - 541| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/types.nix:541:35: - - 540| merge = loc: defs: - 541| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: - | ^ - 542| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue - - … while calling 'filterAttrs' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:309:5: - - 308| # The attribute set to filter - 309| set: - | ^ - 310| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:310:29: - - 309| set: - 310| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); - | ^ - 311| - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:310:62: - - 309| set: - 310| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); - | ^ - 311| - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/types.nix:541:51: - - 540| merge = loc: defs: - 541| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: - | ^ - 542| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/types.nix:541:86: - - 540| merge = loc: defs: - 541| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: - | ^ - 542| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/activatable-system.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/activation-script.nix:137:18: - - 136| apply = set: set // { - 137| script = systemActivationScript set false; - | ^ - 138| }; - - … while calling 'systemActivationScript' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/activation-script.nix:20:33: - - 19| - 20| systemActivationScript = set: onlyDry: let - | ^ - 21| set' = mapAttrs (_: v: if isString v then (noDepEntry v) // { supportsDryActivation = false; } else v) set; - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/activation/activation-script.nix:49:9: - - 48| - 49| ${textClosureMap id (withDrySnippets) (attrNames withDrySnippets)} - | ^ - 50| - - … while calling 'textClosureMap' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings-with-deps.nix:75:35: - - 74| - 75| textClosureMap = f: predefined: names: - | ^ - 76| concatStringsSep "\n" (map f (textClosureList predefined names)); - - … while calling 'id' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/trivial.nix:14:5: - - 13| # The value to return - 14| x: x; - | ^ - 15| - - … while calling 'g' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:629:19: - - 628| g = - 629| name: value: - | ^ - 630| if isAttrs value && cond value - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:632:20: - - 631| then recurse (path ++ [name]) value - 632| else f (path ++ [name]) value; - | ^ - 633| in mapAttrs g; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:242:72: - - 241| # For definitions that have an associated option - 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; - | ^ - 243| - - … while evaluating the option `system.activationScripts.etc.text': - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc-activation.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:846:24: - - 845| let f = attrPath: - 846| zipAttrsWith (n: values: - | ^ - 847| let here = attrPath ++ [n]; in - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/types.nix:565:29: - - 564| merge = loc: defs: - 565| zipAttrsWith (name: defs: - | ^ - 566| let merged = mergeDefinitions (loc ++ [name]) elemType defs; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:88:39: - - 87| then value - 88| else { ${elemAt attrPath n} = atDepth (n + 1); }; - | ^ - 89| in atDepth 0; - - … while calling 'atDepth' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:85:17: - - 84| len = length attrPath; - 85| atDepth = n: - | ^ - 86| if n == len - - … while evaluating derivation 'etc' - whose name attribute is located at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/pkgs/stdenv/generic/make-derivation.nix:300:7 - - … while evaluating attribute 'buildCommand' of derivation 'etc' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/pkgs/build-support/trivial-builders/default.nix:87:14: - - 86| enableParallelBuilding = true; - 87| inherit buildCommand name; - | ^ - 88| passAsFile = [ "buildCommand" ] - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc.nix:54:7: - - 53| mkdir -p "$out/etc" - 54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [ - | ^ - 55| "makeEtcEntry" - - … while calling 'concatMapStringsSep' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:117:5: - - 116| # List of input strings - 117| list: concatStringsSep sep (map f list); - | ^ - 118| - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc.nix:54:33: - - 53| mkdir -p "$out/etc" - 54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [ - | ^ - 55| "makeEtcEntry" - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc.nix:54:43: - - 53| mkdir -p "$out/etc" - 54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [ - | ^ - 55| "makeEtcEntry" - - … while calling 'concatMapStringsSep' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:117:5: - - 116| # List of input strings - 117| list: concatStringsSep sep (map f list); - | ^ - 118| - - … while calling 'escapeShellArg' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:429:20: - - 428| */ - 429| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'"; - | ^ - 430| - - … while calling 'g' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:629:19: - - 628| g = - 629| name: value: - | ^ - 630| if isAttrs value && cond value - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:632:20: - - 631| then recurse (path ++ [name]) value - 632| else f (path ++ [name]) value; - | ^ - 633| in mapAttrs g; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:242:72: - - 241| # For definitions that have an associated option - 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; - | ^ - 243| - - … while evaluating the option `environment.etc."iproute2/bpf_pinning".source': - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/system/etc/etc.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … while calling 'g' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:629:19: - - 628| g = - 629| name: value: - | ^ - 630| if isAttrs value && cond value - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/attrsets.nix:632:20: - - 631| then recurse (path ++ [name]) value - 632| else f (path ++ [name]) value; - | ^ - 633| in mapAttrs g; - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:242:72: - - 241| # For definitions that have an associated option - 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; - | ^ - 243| - - … while evaluating the option `environment.etc."iproute2/bpf_pinning".text': - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:822:28: - - 821| # Process mkMerge and mkIf properties. - 822| defs' = concatMap (m: - | ^ - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - - … while evaluating definitions from `/nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/config/iproute2.nix': - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:823:137: - - 822| defs' = concatMap (m: - 823| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) - | ^ - 824| ) defs; - - … while calling 'dischargeProperties' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/modules.nix:894:25: - - 893| */ - 894| dischargeProperties = def: - | ^ - 895| if def._type or "" == "merge" then - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/nixos/modules/config/iproute2.nix:21:70: - - 20| config = mkIf cfg.enable { - 21| environment.etc."iproute2/bpf_pinning" = { mode = "0644"; text = fileContents "${pkgs.iproute2}/etc/iproute2/bpf_pinning"; }; - | ^ - 22| environment.etc."iproute2/ematch_map" = { mode = "0644"; text = fileContents "${pkgs.iproute2}/etc/iproute2/ematch_map"; }; - - … while calling 'fileContents' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:1139:18: - - 1138| */ - 1139| fileContents = file: removeSuffix "\n" (readFile file); - | ^ - 1140| - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:1139:24: - - 1138| */ - 1139| fileContents = file: removeSuffix "\n" (readFile file); - | ^ - 1140| - - … while calling 'removeSuffix' - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:653:5: - - 652| # Input string - 653| str: - | ^ - 654| # Before 23.05, paths would be copied to the store before converting them - - … from call site - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/strings.nix:656:5: - - 655| # to strings and comparing. This was surprising and confusing. - 656| warnIf - | ^ - 657| (isPath suffix) - - … while calling anonymous lambda - - at /nix/store/z1nvpjx9vd4151vx2krxzmx2p1a36pf9-source/lib/trivial.nix:357:50: - - 356| */ - 357| warnIf = cond: msg: if cond then warn msg else x: x; - | ^ - 358| - - error: getting status of '/nix/store/fijy0dlyk5b06ay7nxg88lr7bp13hpjb-iproute2-6.5.0/etc': No such file or directory diff --git a/flake.lock b/flake.lock index 429f6c8..9996310 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1695738267, - "narHash": "sha256-LTNAbTQ96xSj17xBfsFrFS9i56U2BMLpD0BduhrsVkU=", + "lastModified": 1701728041, + "narHash": "sha256-x0pyrI1vC8evVDxCxyO6olOyr4wlFg9+VS3C3p4xFYQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "0f4e5b4999fd6a42ece5da8a3a2439a50e48e486", + "rev": "ac7216918cd65f3824ba7817dea8f22e61221eaf", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1701253981, - "narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=", + "lastModified": 1701718080, + "narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58", + "rev": "2c7f3c0fb7c08a0814627611d9d7d45ab6d75335", "type": "github" }, "original": { diff --git a/home-manager/all.nix b/home-manager/all.nix index 294b794..5cf1da6 100644 --- a/home-manager/all.nix +++ b/home-manager/all.nix @@ -61,6 +61,9 @@ set splitright set tabstop=2 set shiftwidth=2 + if filereadable(expand(".vim-project")) + source .vim-project + endif ''; }; programs.lf = { diff --git a/home-manager/dots/xinitrc b/home-manager/dots/xinitrc index 21de378..049d1f1 100644 --- a/home-manager/dots/xinitrc +++ b/home-manager/dots/xinitrc @@ -3,7 +3,7 @@ test -z "$DBUS_SESSION_BUS_ADDRESS" && eval $(dbus-launch --exit-with-session -- systemctl --user import-environment DISPLAY XAUTHORITY command -v dbus-update-activation-environment >/dev/null 2>&1 && dbus-update-activation-environment DISPLAY XAUTHORITY xrdb ~/.Xresources & -xrandr --output DP-1 --primary --mode 2560x1440 --rotate normal --rate "164.99" --output DP-2 --mode 2560x1440 --rotate left --rate "164.99" --right-of DP-1 & +xrandr --output DP-1 --primary --mode 2560x1440 --pos 0x560 --rotate normal --rate "164.99" --output DP-2 --mode 2560x1440 --pos 2560x0 --rotate left --rate "164.99" --output DP-3 --off --output HDMI-1 --off --output HDMI-1-2 --off & picom & hsetroot -solid "#282a36" & xbanish & diff --git a/hosts/buckwheat/configuration.nix b/hosts/buckwheat/configuration.nix index f5aea20..a8a36f3 100644 --- a/hosts/buckwheat/configuration.nix +++ b/hosts/buckwheat/configuration.nix @@ -17,39 +17,21 @@ in efi.efiSysMountPoint = "/boot/efi"; timeout = 2; }; - - # Hardware-configuration edits - kernel.sysctl."net.ipv4.ip_forward" = 1; - - # Clean /tmp at boot tmp.cleanOnBoot = true; }; networking = { - hostName = "${hostname}"; # Define your hostname. + hostName = "${hostname}"; firewall = { - # To disable the firewall altogether: - # enable = false; allowedTCPPorts = [ 445 139 ]; allowedUDPPorts = [ 137 138 ]; }; - # Proxy configuration - # proxy = { - # default = "http://user:password@proxy:port/"; - # noProxy = "127.0.0.1,localhost,internal.domain"; - # }; - }; - users.users.${user.name} = { - extraGroups = [ "davfs2" "libvirtd" "transmission" ]; - packages = with pkgs; [ - mixxx - virt-manager - ]; }; environment = { systemPackages = with pkgs; [ virtiofsd ]; }; + virtualisation.libvirtd.enable = true; services = { davfs2 = { enable = true; @@ -66,66 +48,35 @@ in enable = true; mountOnMedia = true; }; - # Enable automatic login for the user. - # getty.autologinUser = "${user.name}"; - }; - - virtualisation.libvirtd.enable = true; - - # Borg backup configuration - services.borgbackup.jobs."daily" = { - paths = [ - "/home" - #"/var" - ]; - exclude = [ - "/home/*/go/bin" - "/home/*/go/pkg" - ]; - repo = "/mnt/daily/buckwheat"; - #repo = "/mnt/backups/buckwheat"; - encryption = { - mode = "repokey-blake2"; - passCommand = "cat /root/borgbackup/passphrase"; - }; - compression = "auto,lzma"; - startAt = "daily"; - prune.keep = { - within = "7d"; - #within = "14d"; + borgbackup = { + jobs."daily" = { + paths = [ + "/home" + "/var" + ]; + exclude = [ + "/home/*/go/bin" + "/home/*/go/pkg" + ]; + repo = "/mnt/archive/buckwheat"; + encryption = { + mode = "repokey-blake2"; + passCommand = "cat /root/borgbackup/passphrase"; + }; + compression = "auto,lzma"; + startAt = "daily"; + prune.keep = { + within = "30d"; + }; + }; }; }; - services.borgbackup.jobs."weekly" = { - paths = [ - "/home" + programs.virt-manager.enable = true; + users.users.${user.name} = { + extraGroups = [ "davfs2" "libvirtd" "transmission" ]; + packages = with pkgs; [ + mixxx + polychromatic ]; - exclude = [ - "/home/*/go/bin" - "/home/*/go/pkg" - ]; - repo = "/mnt/weekly/buckwheat"; - encryption = { - mode = "repokey-blake2"; - passCommand = "cat /root/borgbackup/passphrase"; - }; - compression = "auto,lzma"; - startAt = "weekly"; }; - #services.borgbackup.jobs."borgbase" = { - # paths = [ - # "/home" - # ]; - # exclude = [ - # "/home/*/go/bin" - # "/home/*/go/pkg" - # ]; - # repo = ".repo.borgbase.com:repo"; - # encryption = { - # mode = "repokey-blake2"; - # passCommand = "cat /root/borgbackup/passphrase"; - # }; - # environment.BORG_RSH = "ssh -i /root/borgbackup/ssh_key"; - # compression = "auto,lzma"; - # startAt = "daily"; - #}; } diff --git a/hosts/buckwheat/hardware-configuration.nix b/hosts/buckwheat/hardware-configuration.nix index bcf779a..3a374cd 100644 --- a/hosts/buckwheat/hardware-configuration.nix +++ b/hosts/buckwheat/hardware-configuration.nix @@ -1,54 +1,32 @@ # Buckwheat hardware-configuration.nix { config, lib, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "uas" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-intel" ]; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernel.sysctl."net.ipv4.ip_forward" = 1; boot.extraModulePackages = [ ]; - fileSystems."/" = { device = "/dev/disk/by-uuid/c9833e85-0ea9-45a9-b65d-039c8c4f71f3"; fsType = "ext4"; }; - fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/5E0D-1487"; fsType = "vfat"; }; - - #fileSystems."/mnt/home" = { - # device = ""; - # fsType = "ext4"; - #}; - - #fileSystems."/mnt/backups" = { - # device = ""; - # fsType = "ext4"; - #}; - - fileSystems."/mnt/daily" = { - device = "/dev/disk/by-uuid/bfdd61f6-2d26-4140-94ac-e60c21636dde"; + fileSystems."/home" = { + device = "/dev/disk/by-uuid/eab792a7-ffd3-4963-9b9a-fd0c7dd63cf8"; fsType = "ext4"; }; - - fileSystems."/mnt/weekly" = { - device = "/dev/disk/by-uuid/56f7fd65-bf5d-4ce6-830a-ea8fbf6610af"; + fileSystems."/mnt/archive" = { + device = "/dev/disk/by-uuid/9c89ad29-6fba-47b7-b239-09e7ed7eb49f"; fsType = "ext4"; }; - - fileSystems."/mnt/videos" = { - device = "/dev/disk/by-uuid/e1f9cf9a-4147-4849-83e2-4baa342b6400"; - fsType = "ext4"; - }; - 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 # still possible to use this option, but it's recommended to use it in conjunction @@ -61,7 +39,6 @@ # networking.interfaces.virbr3.useDHCP = lib.mkDefault true; # networking.interfaces.wg-mullvad.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/nixos.qcow2 b/nixos.qcow2 deleted file mode 100644 index 20f248b..0000000 Binary files a/nixos.qcow2 and /dev/null differ diff --git a/nixos/all.nix b/nixos/all.nix index 9c3ded1..d58525d 100644 --- a/nixos/all.nix +++ b/nixos/all.nix @@ -49,6 +49,7 @@ settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; }; allowSFTP = false; # Don't set this if you need sftp extraConfig = '' diff --git a/nixos/chat.nix b/nixos/chat.nix index d992946..5a9b91d 100644 --- a/nixos/chat.nix +++ b/nixos/chat.nix @@ -5,6 +5,7 @@ catgirl discord halloy + profanity signal-desktop ]; } diff --git a/nixos/cli.nix b/nixos/cli.nix index f678e55..c71418a 100644 --- a/nixos/cli.nix +++ b/nixos/cli.nix @@ -98,10 +98,10 @@ mdp mediainfo nb + nom oed pdfgrep phetch - profanity recutils shellcheck ssss diff --git a/nixos/office.nix b/nixos/office.nix index 4f50463..013dc1e 100644 --- a/nixos/office.nix +++ b/nixos/office.nix @@ -2,10 +2,11 @@ { config, lib, pkgs, inputs, user, ... }: { users.users.${user.name}.packages = with pkgs; [ + claws-mail ledger libreoffice pandoc pdftk - sc-im + #sc-im ]; } diff --git a/shell.nix b/shell.nix deleted file mode 100644 index a1290b6..0000000 --- a/shell.nix +++ /dev/null @@ -1,14 +0,0 @@ -let - nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05"; - pkgs = import nixpkgs { config = {}; overlays = []; }; -in - -pkgs.mkShell { - packages = with pkgs; [ - cowsay - ]; - GIT_EDITOR = "${pkgs.neovim}/bin/nvim"; - shellHook = '' - git status - ''; -}