1
Fork 0

Simplify iso

This commit is contained in:
prescientmoon 2024-08-27 21:32:51 +02:00
parent c13f4b9c11
commit 141b023739
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
4 changed files with 39 additions and 14 deletions

View file

@ -3,7 +3,6 @@
# {{{ Imports # {{{ Imports
imports = [ imports = [
./global.nix ./global.nix
./features/cli/lazygit.nix
./features/desktop/foot.nix ./features/desktop/foot.nix
./features/wayland/hyprland ./features/wayland/hyprland
]; ];

View file

@ -1,8 +1,6 @@
{ {
programs.htop = { programs.htop = {
enable = true; enable = true;
settings = { settings.tree_view = true;
tree_view = true;
};
}; };
} }

View file

@ -1,4 +1,11 @@
{ config, lib, pkgs, inputs, ... }: { {
config,
lib,
pkgs,
inputs,
...
}:
{
nix = { nix = {
# Flake support and whatnot # Flake support and whatnot
package = pkgs.lix; package = pkgs.lix;
@ -43,8 +50,10 @@
# Deduplicate and optimize nix store # Deduplicate and optimize nix store
auto-optimise-store = true; auto-optimise-store = true;
# TODO: what is a trusted user? trusted-users = [
trusted-users = [ "root" "@wheel" ]; "root"
"@wheel"
];
}; };
}; };
} }

View file

@ -2,13 +2,23 @@
# #
# Can be built with # Can be built with
# nix build .#nixosConfigurations.iso.config.system.build.isoImage # nix build .#nixosConfigurations.iso.config.system.build.isoImage
{ modulesPath, lib, ... }: {
modulesPath,
inputs,
pkgs,
...
}:
{ {
# {{{ Imports # {{{ Imports
imports = [ imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
../common/global inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
../../../common
../common/global/wireless
../common/global/services/openssh.nix
../common/users/pilot.nix ../common/users/pilot.nix
../common/optional/desktop ../common/optional/desktop
../common/optional/wayland/hyprland.nix ../common/optional/wayland/hyprland.nix
@ -25,16 +35,25 @@
]; ];
}; };
# }}} # }}}
# {{{ Nix config
nix = {
# Flake support and whatnot
package = pkgs.lix;
# Enable flakes and new 'nix' command
settings.experimental-features = [
"nix-command"
"flakes"
];
};
# }}}
# Tell sops-nix to use the hermes keys for decrypting secrets # Tell sops-nix to use the hermes keys for decrypting secrets
sops.age.sshKeyPaths = [ "/hermes/secrets/hermes/ssh_host_ed25519_key" ]; sops.age.sshKeyPaths = [ "/hermes/secrets/hermes/ssh_host_ed25519_key" ];
# Override tailscale service enabled by the `global/default.nix` file # Set username
services.tailscale.enable = lib.mkForce false; satellite.pilot.name = "moon";
# Fast but bad compression # Fast but bad compression
# isoImage.squashfsCompression = "gzip -Xcompression-level 1"; # isoImage.squashfsCompression = "gzip -Xcompression-level 1";
# Set username
satellite.pilot.name = "moon";
} }