104 lines
2.3 KiB
Nix
104 lines
2.3 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{
|
||
flake,
|
||
config,
|
||
pkgs,
|
||
...
|
||
}:
|
||
|
||
{
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
]
|
||
++ (with flake.modules.nixos; [
|
||
default
|
||
kde
|
||
gaming
|
||
podman
|
||
printing
|
||
sops
|
||
virtualbox
|
||
vpn
|
||
]);
|
||
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
services.openssh = {
|
||
enable = true;
|
||
openFirewall = true;
|
||
|
||
settings = {
|
||
PermitRootLogin = "no";
|
||
AllowUsers = [ "moritz" ];
|
||
};
|
||
};
|
||
|
||
hardware.graphics = {
|
||
enable = true;
|
||
enable32Bit = true;
|
||
};
|
||
hardware.amdgpu.initrd.enable = true;
|
||
|
||
# Enable the X11 windowing system.
|
||
# You can disable this if you're only using the Wayland session.
|
||
services.xserver.enable = true;
|
||
|
||
# Enable sound with pipewire.
|
||
services.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
# If you want to use JACK applications, uncomment this
|
||
#jack.enable = true;
|
||
|
||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||
# no need to redefine it in your config for now)
|
||
#media-session.enable = true;
|
||
};
|
||
|
||
# Enable touchpad support (enabled default in most desktopManager).
|
||
# services.xserver.libinput.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users."moritz" = {
|
||
isNormalUser = true;
|
||
description = "Moritz Huber";
|
||
extraGroups = [
|
||
"networkmanager"
|
||
"wheel"
|
||
"podman"
|
||
"vboxusers"
|
||
];
|
||
packages = with pkgs; [
|
||
kdePackages.kate
|
||
# thunderbird
|
||
];
|
||
};
|
||
|
||
# Allow unfree packages
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = with pkgs; [
|
||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||
wget
|
||
git
|
||
];
|
||
|
||
nix.optimise.automatic = true;
|
||
nix.gc = {
|
||
automatic = true;
|
||
dates = "weekly";
|
||
options = "--delete-older-than 30d";
|
||
};
|
||
|
||
system.stateVersion = "26.05";
|
||
}
|