Nix-Vibe public snapshot (squashed history)

This commit is contained in:
2026-09-19 13:54:34 +01:00
commit cff83a473b
118 changed files with 18716 additions and 0 deletions
+81
View File
@@ -0,0 +1,81 @@
# /hosts/mary-x270/configuration.nix
{ config
, pkgs
, inputs
, lib
, ...
}:
{
imports = [
./hardware-configuration.nix
../../modules/core/common.nix
../../modules/desktop/gui.nix
(import ../../modules/storage/disko.nix {
inherit inputs lib config;
diskoConfigPath = ./disko-config.nix;
})
../../modules/desktop/gnome.nix
../../modules/core/management.nix
../../modules/core/dev.nix
];
sops.secrets = {
"users/petere-password" = {
neededForUsers = true;
};
"users/mary-password" = {
neededForUsers = true;
};
"opencode-api-key" = {
owner = "petere";
group = "users";
mode = "0440";
};
};
home-manager.users.mary.imports = [
../../home-manager/modules/desktop-user.nix
];
home-manager.users.petere.imports = [
../../home-manager/modules/desktop-user.nix
];
networking.hostName = "mary-x270";
users.users.mary = {
isNormalUser = true;
description = "Mary";
extraGroups = [
"wheel"
"networkmanager"
"video"
"audio"
];
hashedPasswordFile = config.sops.secrets."users/mary-password".path;
subUidRanges = [
{
startUid = 200000;
count = 65536;
}
];
subGidRanges = [
{
startGid = 200000;
count = 65536;
}
];
};
my.users.petere = {
description = "Peter Edley";
hashedPasswordFile = config.sops.secrets."users/petere-password".path;
subUidStart = 165536;
subGidStart = 165536;
};
hardware.graphics.enable = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
+42
View File
@@ -0,0 +1,42 @@
# /hosts/mary-x270/disko-config.nix
{
disk = {
nixos = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
swap = {
size = "16G";
type = "8200";
content = {
type = "swap";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}
@@ -0,0 +1,28 @@
# /hosts/mary-x270/hardware-configuration.nix
{ config
, lib
, pkgs
, modulesPath
, ...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}