This commit is contained in:
mjallen18
2024-08-24 01:46:53 -05:00
parent cd809e4156
commit f3c53ca33b
19 changed files with 1051 additions and 705 deletions

View File

@@ -4,10 +4,6 @@
inputs = {
# nixpgs
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
# Nix Inspect
nix-inspect.url = "github:bluskript/nix-inspect";
# Authentik
authentik-nix.url = "github:nix-community/authentik-nix";
@@ -19,11 +15,10 @@
impermanence.url = "github:nix-community/impermanence";
# Home Manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager-stable.url = "github:nix-community/home-manager/release-24.05";
home-manager-stable.inputs.nixpkgs.follows = "nixpkgs-stable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# Lanzaboote
lanzaboote = {
@@ -41,14 +36,18 @@
nixos-apple-silicon.url = "github:mjallen18/nixos-apple-silicon";
nix-darwin.url = "github:LnL7/nix-darwin";
cosmic.url = "github:lilyinstarlight/nixos-cosmic";
cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
git-hooks.url = "github:cachix/git-hooks.nix";
};
outputs =
{
self,
nixpkgs-unstable,
nixpkgs-stable,
chaotic,
lanzaboote,
impermanence,
@@ -56,14 +55,19 @@
nixos-hardware,
nix-darwin,
nixos-apple-silicon,
home-manager-stable,
nix-inspect,
cosmic,
authentik-nix,
sops-nix,
git-hooks,
}@inputs:
let
inherit (self) outputs;
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = nixpkgs-unstable.lib.genAttrs supportedSystems;
in
{
overlays = import ./overlays { inherit inputs; };
@@ -90,7 +94,7 @@
specialisation.hyprland.configuration = {
home-manager.users.matt = {
home.sessionVariables = {
DUMBTEST="yaaaaaaas";
DUMBTEST = "yaaaaaaas";
};
};
};
@@ -125,7 +129,7 @@
}
authentik-nix.nixosModules.default
sops-nix.nixosModules.sops
nixos-hardware.nixosModules.common-pc
@@ -187,5 +191,21 @@
# Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null;
# checks = forAllSystems (system: {
# pre-commit-check = git-hooks.lib.${system}.run {
# src = ./.;
# hooks = {
# nixpkgs-fmt.enable = true;
# };
# };
# });
# devShells = forAllSystems (system: {
# default = nixpkgs-unstable.legacyPackages.${system}.mkShell {
# inherit (self.checks.${system}.pre-commit-check) shellHook;
# buildInputs = self.checks.${system}.pre-commit-check.enabledPackages;
# };
# });
};
}