init
This commit is contained in:
commit
26a95a16ed
3 changed files with 78 additions and 0 deletions
7
allsystems.nix
Normal file
7
allsystems.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ flake, inputs, ... }: {
|
||||||
|
imports = [ inputs.impurity.nixosModules.impurity ];
|
||||||
|
impurity.configRoot = flake;
|
||||||
|
|
||||||
|
# preserve the flake that build the current generation
|
||||||
|
environment.etc.current-flake.source = flake;
|
||||||
|
}
|
||||||
42
flake.lock
generated
Normal file
42
flake.lock
generated
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"impurity": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689836741,
|
||||||
|
"narHash": "sha256-82KeRg2sAqDXCdzVs8P8GoqVaPsZjkWgrfsj6kgOLTY=",
|
||||||
|
"owner": "outfoxxed",
|
||||||
|
"repo": "impurity.nix",
|
||||||
|
"rev": "bbc41b69ab5485cd55aa315d08cff865781d3913",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "outfoxxed",
|
||||||
|
"repo": "impurity.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1753694789,
|
||||||
|
"narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "dc9637876d0dcc8c9e5e22986b857632effeb727",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"impurity": "impurity",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
29
flake.nix
Normal file
29
flake.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
nixConfig = {
|
||||||
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
"pipe-operators"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
impurity.url = "github:outfoxxed/impurity.nix";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs @ { self, nixpkgs, ... }: let
|
||||||
|
specialArgs = { flake = self; inherit inputs; };
|
||||||
|
in {
|
||||||
|
nixosConfigurations = {
|
||||||
|
lappy = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
inherit specialArgs;
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./allsystems.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue