sway iso
This commit is contained in:
parent
13773b1be3
commit
c62289217c
5 changed files with 62 additions and 0 deletions
4
Justfile
4
Justfile
|
@ -7,6 +7,10 @@ local OPERATION *FLAGS:
|
|||
{{OPERATION}}
|
||||
|
||||
|
||||
buildiso *FLAGS:
|
||||
nix build .#nixosConfigurations.liveiso.config.system.build.isoImage {{FLAGS}}
|
||||
|
||||
|
||||
remote OPERATION HOST HOSTNAME *FLAGS:
|
||||
nixos-rebuild \
|
||||
--fast \
|
||||
|
|
|
@ -87,6 +87,19 @@ in {
|
|||
}
|
||||
];
|
||||
};
|
||||
liveiso = {
|
||||
deployment.targetHost = null;
|
||||
imports = [
|
||||
./liveiso
|
||||
|
||||
"${mod}/nix"
|
||||
"${mod}/core/security.nix"
|
||||
|
||||
"${mod}/services"
|
||||
|
||||
"${mod}/desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
flake.nixosConfigurations = let
|
||||
l = inputs.nixpkgs.lib;
|
||||
|
|
19
hosts/liveiso/default.nix
Normal file
19
hosts/liveiso/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
inputs,
|
||||
modulesPath,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./tools.nix
|
||||
./sway.nix
|
||||
];
|
||||
|
||||
isoImage.edition = "sway-custom";
|
||||
|
||||
networking.hostName = "liveiso";
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
20
hosts/liveiso/sway.nix
Normal file
20
hosts/liveiso/sway.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{modulesPath, ...}: {
|
||||
imports = [
|
||||
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix"
|
||||
];
|
||||
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "nixos";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
6
hosts/liveiso/tools.nix
Normal file
6
hosts/liveiso/tools.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
parted
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue