Break all the things

This commit is contained in:
iFargle 2023-09-21 21:47:59 +09:00
parent 7646af7bb6
commit 7b4835a163
4 changed files with 20 additions and 23 deletions

View file

@ -10,7 +10,7 @@ echo 'LUKSEncryptionKeyHere' >> /tmp/secret.key
nix run github:nix-community/disko -- --mode disko /tmp/disks.nix nix run github:nix-community/disko -- --mode disko /tmp/disks.nix
mkdir -p /mnt/etc/nixos/ mkdir -p /mnt/etc/nixos/
git clone https://git.sysctl.io/albert/nix /etc/nixos/git git clone https://git.sysctl.io/albert/nix /etc/nixos/git
nixos-install --flake /etc/nixos/git#${HOSTNAME} -v --show-trace nixos-install --flake /etc/nixos/git#${HOSTNAME} -v --show-trace --no-root-password
``` ```
![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme") ![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme")

View file

@ -51,10 +51,10 @@
../nixos ../nixos
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
# inputs.home-manager.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
# home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform theme format; }; home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform theme format; };
# home-manager.users."${username}" = import ../home-manager; home-manager.users."${username}" = import ../home-manager;
# } }
]; ];
}; };
@ -77,10 +77,6 @@
../nixos/minimal.nix ../nixos/minimal.nix
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
# inputs.home-manager.nixosModules.home-manager {
# home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform theme format; };
# home-manager.users."${username}" = import ../home-manager;
# }
]; ];
}; };

View file

@ -1,18 +1,4 @@
{ lib, config, pkgs, ...}: { { lib, config, pkgs, ...}: {
# Bootloader
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.cleanOnBoot = true;
# Plymouth splash screen
boot.plymouth.enable = true;
# https://github.com/adi1090x/plymouth-themes
boot.plymouth.theme = "red_loader";
boot.plymouth.themePackages = [ pkgs.adi1090x-plymouth-themes ];
boot.initrd.systemd.enable = true;
boot.kernelParams = ["quiet"];
# SecureBoot
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote.enable = true; boot.lanzaboote.enable = true;
boot.lanzaboote.pkiBundle = "/etc/secureboot"; boot.lanzaboote.pkiBundle = "/etc/secureboot";
} }

View file

@ -24,6 +24,21 @@
./hosts/${hostname} ./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop}; ] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
# Bootloader
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.cleanOnBoot = true;
# Plymouth splash screen
boot.plymouth.enable = true;
# https://github.com/adi1090x/plymouth-themes
boot.plymouth.theme = "red_loader";
boot.plymouth.themePackages = [ pkgs.adi1090x-plymouth-themes ];
boot.initrd.systemd.enable = true;
boot.kernelParams = ["quiet"];
# SecureBoot
boot.loader.systemd-boot.enable = lib.mkForce false;
# List packages installed in system profile # List packages installed in system profile
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
sbctl sbctl