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
+29
View File
@@ -0,0 +1,29 @@
{ pkgs, ... }:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true;
networking.networkmanager.enable = true;
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "de_DE.UTF-8";
console.keyMap = "de";
environment.systemPackages = with pkgs; [
git
vim
curl
wget
htop
tree
];
programs.git.enable = true;
}
+24
View File
@@ -0,0 +1,24 @@
{ ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.plymouth.enable = true;
boot.initrd.systemd.enable = true;
boot.kernelParams = [
"quiet"
"splash"
];
boot.consoleLogLevel = 3;
boot.initrd.verbose = false;
boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-partlabel/luks";
};
fileSystems."/".device = "/dev/mapper/cryptroot";
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
hardware.graphics = {
enable = true;
};
}
+16
View File
@@ -0,0 +1,16 @@
{ ... }:
{
fileSystems."/" = {
device = "tmpfs";
fsType = "tmpfs";
options = [
"mode=755"
"nosuid"
"nodev"
];
neededForBoot = true;
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
}
+25
View File
@@ -0,0 +1,25 @@
{ ... }:
{
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
hideMounts = true;
directories = [
{
directory = "/home/user/nixos-config";
user = "user";
group = "users";
}
"/var/lib/nixos"
];
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
];
};
}
+5
View File
@@ -0,0 +1,5 @@
{ ... }:
{
sops.age.keyFile = "/persist/keys/host-age.key";
}