From 173588996cf63f1bcec63acfb51d16b094e8f807 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 10 Dec 2023 09:46:02 +0100 Subject: [PATCH] cleanup --- .sops.yaml | 1 + flake.nix | 26 +++++++++++++------------- hosts/eple/default.nix | 1 - users/pbsds/home/default.nix | 2 ++ 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.sops.yaml b/.sops.yaml index edc3c3f..47b3df9 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -15,6 +15,7 @@ keys: # https://github.com/getsops/sops/pull/1123 - &host_eple age1fha09v5edg88ys45a0u3tpjqfyl29fsy9xaz8xxfy60zjhmas5psfdxynp - &host_nord age19xrvt0gjl4fcfjyy62mrl9uuzrq9e0wgemtkykr07ewz7nqn9cwshngel5 #- &host_bjarte age1gy6gyp9qqt5vlkzymfxsrdqm6rctl39tx53jx6n0hgd3escy844q55d6ey + # https://github.com/getsops/sops#key-groups creation_rules: # global diff --git a/flake.nix b/flake.nix index 30ae8c7..32b19d1 100644 --- a/flake.nix +++ b/flake.nix @@ -185,11 +185,20 @@ }; in { inherit inputs; + inherit inputs-2311; + + lib = { + inherit flake forSystems; + } // forAllSystems ({ ... }: { + inherit flake forSystems; + }); + + nixosModules = mkHosts mkModule; + nixosConfigurations = mkHosts mkConfig; + + packages = forAllSystems ({ pkgs, flakes, ... }: { + mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # TODO: https://github.com/NixOS/nixpkgs/pull/238659, remove when i switch to 23.11 - packages = forAllSystems ({ pkgs, flakes, ... }: let - nm = nixos-hardware.nixosModules; - in { - mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # TODO: https://github.com/NixOS/nixpkgs/pull/238659 nixos-rebuild-nom = with pkgs; writeScriptBin "nixos-rebuild" '' exec ${nixos-rebuild}/bin/nixos-rebuild "$@" |& ${nix-output-monitor}/bin/nom ''; @@ -203,15 +212,6 @@ }; }); - lib = { - inherit flake forSystems; - } // forAllSystems ({ ... }: { - inherit flake forSystems; - }); - - nixosModules = mkHosts mkModule; - nixosConfigurations = mkHosts mkConfig; - homeConfigurations = forAllSystems ({ pkgs, flakes, ... }: let mkHome = user: home: modules: inputs.home-manager.lib.homeManagerConfiguration { inherit pkgs; diff --git a/hosts/eple/default.nix b/hosts/eple/default.nix index 442eba0..051cb4e 100644 --- a/hosts/eple/default.nix +++ b/hosts/eple/default.nix @@ -12,7 +12,6 @@ ../../profiles/sshd.nix ../../users/pbsds - ../../users/daniel ../../profiles/shell/base.nix ../../profiles/shell/archives.nix diff --git a/users/pbsds/home/default.nix b/users/pbsds/home/default.nix index a6f7210..335e757 100644 --- a/users/pbsds/home/default.nix +++ b/users/pbsds/home/default.nix @@ -132,6 +132,8 @@ killall = "killall -v"; bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-"; + + denix = "sed -E 's@/nix/store/[^ /]+/@@g'"; }; # TODO: auto-update db