aboutsummaryrefslogtreecommitdiff
path: root/hosts/nixos/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/nixos/configuration.nix')
-rw-r--r--hosts/nixos/configuration.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix
new file mode 100644
index 0000000..5d8578c
--- /dev/null
+++ b/hosts/nixos/configuration.nix
@@ -0,0 +1,63 @@
+{ config, pkgs, ...}:
+
+{
+
+ imports = [
+ ./hardware-configuration.nix
+ ../../modules/nixos
+ ];
+
+ # Bootloader.
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ # Use latest kernel
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ # Graphics
+ hardware.graphics = {
+ enable = true;
+ enable32Bit = true;
+ extraPackages = with pkgs; [
+ amdvlk
+ ];
+ };
+
+ environment.variables.AMD_VULKAN_ICD = "RADV";
+
+ # Network
+ networking = {
+ hostName = "nixos";
+ networkmanager.enable = true;
+ };
+
+ # Time
+ time.timeZone = "Europe/Berlin";
+
+ # Keymap
+ console.keyMap = "de";
+
+ # User
+ users.users.leander = {
+ isNormalUser = true;
+ extraGroups = [ "networkmanager" "wheel" "video" "input" ];
+ };
+
+ services = {
+ openssh.enable = true;
+ gnome.gnome-keyring.enable = true;
+ };
+
+ # Security
+ security.polkit.enable = true;
+
+ # home manager crash when disabled
+ programs.dconf.enable = true;
+
+ audio.enable = true;
+ wooting.enable = true;
+
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nixpkgs.config.allowUnfree = true;
+ system.stateVersion = "24.11";
+}