inital config

This commit is contained in:
Joshua Falkenberg
2026-09-10 13:31:28 +02:00
commit d2ab7241e4
18 changed files with 553 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{ ... }:
{
imports = [
./disko.nix
];
networking.hostName = "desktop";
users.users.user = {
isNormalUser = true;
home = "/home/user";
extraGroups = [
"wheel"
"networkmanager"
];
};
security.sudo.wheelNeedsPassword = false;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.user = import ../../home/user.nix;
};
system.stateVersion = "25.11";
}
+60
View File
@@ -0,0 +1,60 @@
{
disko.devices.disk.main = {
type = "disk";
device = "/dev/disk/by-id/ata-Vi550_S3_4935445284600580";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
label="luks";
content = {
type = "luks";
name = "cryptroot";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
subvolumes = {
"/@nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/@persist" = {
mountpoint = "/persist";
mountOptions = [
"compress=zstd"
"noatime"
];
};
};
};
};
};
};
};
};
}