Added live-image to flake
This commit is contained in:
parent
899fda4c6a
commit
4cba408c42
3 changed files with 25 additions and 16 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
result
|
||||||
|
|
@ -1 +1 @@
|
||||||
Removed powershell
|
Added live-image to flake
|
||||||
22
flake.nix
22
flake.nix
|
|
@ -33,17 +33,11 @@
|
||||||
config.allowUnfree = false;
|
config.allowUnfree = false;
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in
|
baseModules = [
|
||||||
{
|
|
||||||
nixosConfigurations = {
|
|
||||||
nixos = lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ inputs.nixvim.packages.${system}.default ];
|
environment.systemPackages = [ inputs.nixvim.packages.${system}.default ];
|
||||||
}
|
}
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./devices/default/default.nix
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
@ -55,6 +49,20 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations = {
|
||||||
|
nixos = lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = baseModules ++ [
|
||||||
|
./devices/default/default.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
live = lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = baseModules ++ [
|
||||||
|
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue