mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: cleanup, secure boot for framework
This commit is contained in:
parent
15f40761fb
commit
d37bd2c669
18 changed files with 297 additions and 144 deletions
|
|
@ -1,71 +1,85 @@
|
|||
_: let
|
||||
hostConfig = {
|
||||
tree,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
(with tree.nixos.hardware; [
|
||||
framework
|
||||
])
|
||||
++ (with tree.nixos.profiles; [
|
||||
hostConfig = {
|
||||
tree,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
(with tree.nixos.hardware; [
|
||||
framework
|
||||
])
|
||||
++ (with tree.nixos.profiles; [
|
||||
graphical
|
||||
gaming
|
||||
wireless
|
||||
laptop
|
||||
bcachefs
|
||||
])
|
||||
++ (with tree.nixos.environments; [
|
||||
])
|
||||
++ (with tree.nixos.environments; [
|
||||
hyprland
|
||||
]);
|
||||
config = {
|
||||
home-manager.users.kat.imports =
|
||||
(with tree.home.profiles; [
|
||||
graphical
|
||||
devops
|
||||
])
|
||||
++ (with tree.home.environments; [
|
||||
]);
|
||||
config = let
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
home-manager.users.kat.imports =
|
||||
(with tree.home.profiles; [
|
||||
graphical
|
||||
devops
|
||||
])
|
||||
++ (with tree.home.environments; [
|
||||
hyprland
|
||||
]);
|
||||
]);
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
parsec-bin
|
||||
];
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/861e8815-9327-4e49-915b-73a3b0bdfa25";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/DD84-303D";
|
||||
fsType = "vfat";
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
parsec-bin
|
||||
sbctl
|
||||
];
|
||||
services.avahi = {
|
||||
nssmdns = true;
|
||||
enable = true;
|
||||
ipv4 = true;
|
||||
ipv6 = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
addresses = true;
|
||||
workstation = true;
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/04bd322e-dca0-43b8-b588-cc0ef1b1488e";}
|
||||
];
|
||||
|
||||
boot = {
|
||||
supportedFilesystems = ["ntfs"];
|
||||
loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
systemd-boot.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/861e8815-9327-4e49-915b-73a3b0bdfa25";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/DD84-303D";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/04bd322e-dca0-43b8-b588-cc0ef1b1488e";}
|
||||
];
|
||||
|
||||
boot = {
|
||||
supportedFilesystems = ["ntfs"];
|
||||
loader = {
|
||||
systemd-boot.enable = mkForce false;
|
||||
};
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/etc/secureboot";
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
};
|
||||
in {
|
||||
arch = "x86_64";
|
||||
type = "NixOS";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue