add flake.nix
This commit is contained in:
parent
d2cc84899a
commit
1f66bc0a71
2 changed files with 22 additions and 0 deletions
15
flake.nix
Normal file
15
flake.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = github:NixOS/nixpkgs;
|
||||
home-manager.url = github:nix-community/home-manager;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager }: with nixpkgs; {
|
||||
nixosConfigurations."thor" = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./configuration.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -206,5 +206,12 @@ let named = submodule {
|
|||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue