alejandra formatting

This commit is contained in:
2025-06-03 20:12:32 +02:00
parent 3b7e839d7b
commit 2ed72ee4b3
7 changed files with 64 additions and 44 deletions

View File

@ -1,6 +1,9 @@
{ config, pkgs, inputs, ... }:
{
config,
pkgs,
inputs,
...
}: {
imports = [
./desktop.nix
./users.nix
@ -11,14 +14,14 @@
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
initrd.kernelModules = [ "amdgpu" ];
initrd.kernelModules = ["amdgpu"];
kernelPackages = pkgs.linuxPackages_latest;
};
# Enable networking
networking.networkmanager.enable = true;
# Network security
# Network security
# enable firewall and block all ports
networking.firewall.enable = true;
@ -62,9 +65,9 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = ["nix-command" "flakes"];
# Automatic system upgrades
system.autoUpgrade = {
@ -109,4 +112,4 @@
# settings for stateful data, like file locations and database versions
# on your system were taken.
system.stateVersion = "23.11";
}
}

View File

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
services.xserver = {
# Enable the X11 windowing system.
enable = true;
@ -15,4 +17,4 @@
variant = "";
};
};
}
}

View File

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
# Common packages for ALL systems
environment.systemPackages = with pkgs; [
# networking
@ -98,9 +100,9 @@
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
ovmf.packages = [pkgs.OVMFFull.fd];
};
};
spiceUSBRedirection.enable = true;
};
}
}

View File

@ -1,14 +1,16 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
# Define the main user account
users = {
users.schulze = {
isNormalUser = true;
description = "Felix Schulze";
extraGroups = [ "networkmanager" "wheel" "docker" ];
extraGroups = ["networkmanager" "wheel" "docker"];
shell = pkgs.fish;
};
groups.libvirtd.members = ["schulze"];
};
}
}