add patch feature (#6)

* add patch feature

* refactor
This commit is contained in:
Dennis
2023-12-30 17:18:25 +01:00
committed by GitHub
parent 5835291841
commit 85ab0e229e
3 changed files with 82 additions and 19 deletions

View File

@ -3,7 +3,11 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
patch-bitwarden-directory-connector.url = "github:Silver-Golden/nixpkgs/bitwarden-directory-connector_pkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
flake-utils.url = "github:numtide/flake-utils";
nixos-modules = {
url = "github:SuperSandro2000/nixos-modules";
@ -24,7 +28,7 @@
};
};
outputs = { nixpkgs, nixos-hardware, nixos-modules, home-manager, sops-nix, ... }:
outputs = { nixpkgs, nixos-modules, home-manager, sops-nix, ... }@inputs:
let
inherit (nixpkgs) lib;
src = builtins.filterSource (path: type: type == "directory" || lib.hasSuffix ".nix" (baseNameOf path)) ./.;
@ -41,12 +45,20 @@
, users ? [ "dennis" ]
,
}: lib.nixosSystem {
inherit system;
inherit system lib;
modules = [
{
nixpkgs.overlays = [
(_self: super: {
bitwarden-directory-connector-cli = inputs.patch-bitwarden-directory-connector.legacyPackages.${system}.bitwarden-directory-connector-cli;
})
];
}
nixos-modules.nixosModule
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
"${inputs.patch-bitwarden-directory-connector}/nixos/modules/services/security/bitwarden-directory-connector-cli.nix"
./systems/programs.nix
./systems/configuration.nix
./systems/${hostname}/hardware.nix
@ -72,27 +84,27 @@
jeeves-jr = constructSystem {
hostname = "jeeves-jr";
users = [
"richie"
"alice"
"dennis"
"richie"
];
};
palatine-hill = constructSystem {
hostname = "palatine-hill";
users = [
"richie"
"alice"
"dennis"
"richie"
];
};
photon = constructSystem {
hostname = "photon";
users = [
"richie"
"alice"
"dennis"
"richie"
];
};
};