flake: sitch to npins
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a6964f4aa3349951fe7574622564452ad1af1
This commit is contained in:
parent
45179ade64
commit
2e7d11c2ed
24 changed files with 707 additions and 731 deletions
68
flake.nix
68
flake.nix
|
@ -1,11 +1,18 @@
|
|||
{
|
||||
description = "My NixOS config flake";
|
||||
outputs = inputs: let
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
eachSystem = lib.genAttrs (import inputs.systems);
|
||||
pkgsFor = inputs.nixpkgs.legacyPackages;
|
||||
|
||||
# No inputs, take this flakers
|
||||
|
||||
outputs = _: let
|
||||
sources = import ./npins;
|
||||
nixpkgs = (import sources.flake-compat {src = sources.nixpkgs;}).outputs;
|
||||
|
||||
inherit (nixpkgs) lib;
|
||||
eachSystem = lib.genAttrs (import sources.systems);
|
||||
pkgsFor = nixpkgs.legacyPackages;
|
||||
inputs = sources;
|
||||
in {
|
||||
nixosConfigurations = import ./hosts inputs;
|
||||
nixosConfigurations = import ./default.nix;
|
||||
|
||||
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
|
||||
|
||||
|
@ -24,6 +31,18 @@
|
|||
}
|
||||
)
|
||||
pkgsFor;
|
||||
devShells =
|
||||
lib.mapAttrs (
|
||||
_: pkgs: {
|
||||
default = pkgs.mkShellNoCC {
|
||||
packages = [
|
||||
(pkgs.callPackage (sources.npins + "/npins.nix") {})
|
||||
];
|
||||
env.NPINS_OVERRIDE_nichts = ".";
|
||||
};
|
||||
}
|
||||
)
|
||||
pkgsFor;
|
||||
|
||||
apps = eachSystem (system: let
|
||||
inherit (inputs.self.packages.${system}) fish helix nushell;
|
||||
|
@ -45,43 +64,4 @@
|
|||
|
||||
templates = import ./templates;
|
||||
};
|
||||
inputs = {
|
||||
# Unstable nixpkgs, using the new Lockable HTTP Tarball protocol
|
||||
# https://github.com/NixOS/infra/pull/562.
|
||||
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
|
||||
|
||||
systems.url = "github:nix-systems/default-linux";
|
||||
|
||||
impermanence.url = "github:nix-community/impermanence";
|
||||
|
||||
watt = {
|
||||
url = "github:notashelf/watt";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spicetify-nix = {
|
||||
url = "github:Gerg-L/spicetify-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.systems.follows = "systems";
|
||||
};
|
||||
|
||||
quickshell = {
|
||||
# add ?ref=<tag> to track a tag
|
||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||
|
||||
# THIS IS IMPORTANT
|
||||
# Mismatched system dependencies will lead to crashes and other issues.
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# secure booting
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# DetNix is doing too well these days not to use it.
|
||||
determinate = {
|
||||
url = "github:determinatesystems/determinate";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue