flake | working for vm
This commit is contained in:
parent
4adfe068fc
commit
fb8da3487a
1 changed files with 30 additions and 2 deletions
32
flake.nix
32
flake.nix
|
|
@ -1,13 +1,41 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-23.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: {
|
outputs = inputs: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = let
|
||||||
|
workstation = {
|
||||||
|
modules = [
|
||||||
|
./workstation
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
./home
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
loki = inputs.nixpkgs.lib.nixosSystem {
|
loki = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./hosts/loki/configuration.nix ];
|
modules = workstation.modules ++ [
|
||||||
|
{
|
||||||
|
networking.hostName = "loki";
|
||||||
|
}
|
||||||
|
./wm/sway
|
||||||
|
];
|
||||||
|
};
|
||||||
|
vm2 = inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = workstation.modules ++ [
|
||||||
|
{
|
||||||
|
services.getty.autologinUser = "don";
|
||||||
|
networking.hostName = "vm2";
|
||||||
|
}
|
||||||
|
./wm/sway
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue