diff --git a/flake.lock b/flake.lock index 57043ac..b4a463c 100644 --- a/flake.lock +++ b/flake.lock @@ -38,6 +38,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -58,6 +76,28 @@ "type": "github" } }, + "nix-github-actions": { + "inputs": { + "nixpkgs": [ + "system_tools", + "poetry2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1703863825, + "narHash": "sha256-rXwqjtwiGKJheXB43ybM8NwWB8rO2dSRrEqes0S7F5Y=", + "owner": "nix-community", + "repo": "nix-github-actions", + "rev": "5163432afc817cf8bd1f031418d1869e4c9d5547", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-github-actions", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1725716377, @@ -92,11 +132,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1725407940, - "narHash": "sha256-tiN5Rlg/jiY0tyky+soJZoRzLKbPyIdlQ77xVgREDNM=", + "lastModified": 1725693463, + "narHash": "sha256-ZPzhebbWBOr0zRWW10FfqfbJlan3G96/h3uqhiFqmwg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "6f6c45b5134a8ee2e465164811e451dcb5ad86e3", + "rev": "68e7dce0a6532e876980764167ad158174402c6f", "type": "github" }, "original": { @@ -106,6 +146,34 @@ "type": "github" } }, + "poetry2nix": { + "inputs": { + "flake-utils": [ + "system_tools", + "flake-utils" + ], + "nix-github-actions": "nix-github-actions", + "nixpkgs": [ + "system_tools", + "nixpkgs" + ], + "systems": "systems_2", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1723343306, + "narHash": "sha256-/6sRkPq7/5weX2y0V8sQ29Sz35nt8kyj+BsFtkhgbJE=", + "owner": "nix-community", + "repo": "poetry2nix", + "rev": "4a1c112ff0c67f496573dc345bd0b2247818fc29", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "poetry2nix", + "type": "github" + } + }, "root": { "inputs": { "firefox-addons": "firefox-addons", @@ -113,34 +181,62 @@ "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable", - "sops-nix": "sops-nix", - "systems": "systems" + "system_tools": "system_tools", + "systems": "systems_3" } }, - "sops-nix": { + "system_tools": { "inputs": { + "flake-utils": "flake-utils_2", "nixpkgs": [ "nixpkgs" ], - "nixpkgs-stable": [ - "nixpkgs" - ] + "poetry2nix": "poetry2nix" }, "locked": { - "lastModified": 1725765163, - "narHash": "sha256-rfd2c47iVSFI6bRYy5l8wRijRBaYDeU7dM8XCDUGqlA=", - "owner": "Mic92", - "repo": "sops-nix", - "rev": "b68757cd2c3fa66d6ccaa0d046ce42a9324e0070", + "lastModified": 1725312414, + "narHash": "sha256-IWztoUBuZjqw5Mti/CJvvPvAHNpCfnZVS/gGNMdQUhQ=", + "owner": "RichieCahill", + "repo": "system_tools", + "rev": "632a465087f5b9ab7d6efc125bebfe6af57c1d58", "type": "github" }, "original": { - "owner": "Mic92", - "repo": "sops-nix", + "owner": "RichieCahill", + "repo": "system_tools", "type": "github" } }, "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "id": "systems", + "type": "indirect" + } + }, + "systems_3": { "locked": { "lastModified": 1689347949, "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", @@ -154,6 +250,28 @@ "repo": "default-linux", "type": "github" } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "system_tools", + "poetry2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1719749022, + "narHash": "sha256-ddPKHcqaKCIFSFc/cvxS14goUhCOAwsM1PbMr0ZtHMg=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "8df5ff62195d4e67e2264df0b7f5e8c9995fd0bd", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 44fb51e..02267ba 100644 --- a/flake.nix +++ b/flake.nix @@ -30,12 +30,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - sops-nix = { - url = "github:Mic92/sops-nix"; + system_tools = { + url = "github:RichieCahill/system_tools"; inputs.nixpkgs.follows = "nixpkgs"; - inputs.nixpkgs-stable.follows = "nixpkgs"; }; - }; outputs = { diff --git a/users/default.nix b/users/default.nix deleted file mode 100644 index 67868f7..0000000 --- a/users/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - lib, - config, - pkgs, - name, - publicKeys ? [ ], - defaultShell ? "zsh", -}: - -{ - inherit name; - isNormalUser = true; - shell = lib.mkIf config.programs.${defaultShell}.enable pkgs.${defaultShell}; - hashedPasswordFile = config.sops.secrets."${name}/user-password".path or null; - openssh.authorizedKeys.keys = publicKeys; - extraGroups = [ - "wheel" - "media" - (lib.mkIf config.networking.networkmanager.enable "networkmanager") - (lib.mkIf config.programs.adb.enable "adbusers") - (lib.mkIf config.programs.wireshark.enable "wireshark") - (lib.mkIf config.virtualisation.docker.enable "docker") - (lib.mkIf (with config.services.locate; (enable && package == pkgs.plocate)) "plocate") - "libvirtd" - "dialout" - "plugdev" - "uaccess" - ]; -} diff --git a/users/richie/home/programs.nix b/users/richie/home/programs.nix index 2c3d44c..537f3b4 100644 --- a/users/richie/home/programs.nix +++ b/users/richie/home/programs.nix @@ -42,6 +42,6 @@ nix-prefetch nix-tree nixpkgs-fmt - # inputs.system_tools.packages.x86_64-linux.default + inputs.system_tools.packages.x86_64-linux.default ]; }