add iso building thingy
This commit is contained in:
parent
6a0df97bff
commit
b797fffd79
3 changed files with 35 additions and 8 deletions
11
flake.nix
11
flake.nix
|
@ -52,15 +52,12 @@
|
||||||
|
|
||||||
bengal = { };
|
bengal = { };
|
||||||
ocelot = { };
|
ocelot = { };
|
||||||
|
iso = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = { } // colmenaHive.nodes;
|
||||||
test = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
packages.x86_64-linux.iso = self.nixosConfigurations.iso.config.system.build.isoImage;
|
||||||
specialArgs = { inherit inputs outputs; };
|
|
||||||
modules = [ ./hosts/test-vm ./hosts/common (import "${home-manager}/nixos") ];
|
|
||||||
};
|
|
||||||
} // colmenaHive.nodes;
|
|
||||||
|
|
||||||
homeConfigurations =
|
homeConfigurations =
|
||||||
let
|
let
|
||||||
|
|
30
hosts/iso/default.nix
Normal file
30
hosts/iso/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ modulesPath, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enables copy / paste when running in a KVM with spice.
|
||||||
|
services.spice-vdagentd.enable = true;
|
||||||
|
|
||||||
|
users.users.nixos.shell = pkgs.fish;
|
||||||
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
mkpasswd
|
||||||
|
nixpkgs-fmt
|
||||||
|
neovim-unwrapped
|
||||||
|
xclip
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.nixos = {
|
||||||
|
imports = [
|
||||||
|
../../modules/home/foot.nix
|
||||||
|
];
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
|
};
|
||||||
|
# Use faster squashfs compression
|
||||||
|
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
|
||||||
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
StreamLocalBindUnlink yes
|
StreamLocalBindUnlink yes
|
||||||
'';
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = lib.mkOverride 999 "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
Macs = [
|
Macs = [
|
||||||
"hmac-sha2-512"
|
"hmac-sha2-512"
|
||||||
|
|
Loading…
Reference in a new issue