feat: Add nixos configuration flake
This commit is contained in:
parent
2c0e4f885e
commit
d00c3204f7
4 changed files with 362 additions and 0 deletions
31
nix/flake.nix
Normal file
31
nix/flake.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
description = "Marm's NixOS flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nur = {
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
url = "github:nix-community/NUR";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nur, ... } @ inputs:
|
||||
let
|
||||
inherit (self) outputs; # outputs = self.outputs;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
lamarr = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
|
||||
hostname = "lamarr";
|
||||
};
|
||||
modules = [
|
||||
./configuration.nix
|
||||
nur.modules.nixos.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue