nixconfig/configuration.nix

190 lines
5.2 KiB
Nix
Raw Normal View History

2023-11-15 16:09:47 +00:00
# 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`).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
2024-07-04 12:24:58 +00:00
./bevuta-config/bevuta.nix
2023-11-15 16:09:47 +00:00
./hardware-configuration.nix
2023-11-17 21:09:42 +00:00
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
./disko-config.nix
2023-11-15 16:09:47 +00:00
];
# Use the systemd-boot EFI boot loader.
2023-11-17 21:35:23 +00:00
boot.loader.systemd-boot.enable = true;
2023-11-15 16:09:47 +00:00
boot.loader.efi.canTouchEfiVariables = true;
2024-07-04 12:24:58 +00:00
boot.initrd.luks.devices."root".preLVM = lib.mkForce false;
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2024-07-04 12:46:01 +00:00
# https://nixos.org/manual/nixos/stable/#sec-luks-file-systems-fido2-systemd
2024-07-04 12:24:58 +00:00
initrd = {
systemd.enable = true;
luks.devices."crypted" = {
preLVM = lib.mkForce false;
crypttabExtraOpts = [ "fido2-device=auto" ];
device = "/dev/nvme0n1p2";
};
};
};
#networking.hostName = "ziltis-desktop"; # Define your hostname.
2023-11-15 16:09:47 +00:00
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
# keyMap = "de";
useXkbConfig = true; # use xkbOptions in tty.
};
# Enable the X11 windowing system.
# services.xserver.enable = true;
2024-07-04 12:24:58 +00:00
services.xserver = {
enable = true;
layout = "de";
xkbOptions = "eurosign;e,caps:escape";
libinput.enable = true;
displayManager = {
sddm.enable = true;
};
};
2023-11-15 16:09:47 +00:00
programs.hyprland.enable = true;
services.flatpak.enable = true;
nixpkgs.config.allowUnfree = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# rtkit is optional but recommended
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;
};
# Define a user account. Don't forget to set a password with passwd.
# users.users.alice = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# packages = with pkgs; [
# firefox
# tree
# ];
# };
users.users.zilti = {
isNormalUser = true;
2023-11-27 10:24:47 +00:00
extraGroups = [ "wheel" "libvirtd" ];
2023-11-15 16:09:47 +00:00
};
# 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
2023-11-17 21:09:42 +00:00
gnumake
2023-11-15 16:09:47 +00:00
];
2023-11-27 10:24:47 +00:00
programs.virt-manager.enable = true;
2023-11-15 16:09:47 +00:00
virtualisation = {
2023-11-27 10:24:47 +00:00
libvirtd = {
enable = true;
};
2024-07-04 12:24:58 +00:00
# podman = {
# enable = true;
# dockerCompat = true;
# defaultNetwork.settings.dns_enabled = true;
# };
# containers.storage.settings = {
# storage = {
# driver = "btrfs";
# };
# };
2023-11-15 16:09:47 +00:00
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services.hardware.bolt.enable = true;
hardware.tuxedo-keyboard.enable = true;
2023-11-17 21:35:23 +00:00
# hardware.tuxedo-rs = {
# enable = true;
# tailor-gui.enable = true;
# };
2023-11-15 16:09:47 +00:00
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
2024-07-04 12:24:58 +00:00
# networking.extraHosts = ''
# 127.0.0.1 l.redsky.io
# ::1 l.redsky.io
# '';
2023-11-15 16:09:47 +00:00
2024-07-04 12:24:58 +00:00
# security.pam.services.swaylock = {};
2023-11-15 16:09:47 +00:00
services.btrfs = {
autoScrub = {
enable = true;
interval = "weekly";
fileSystems = [ "/" ];
};
};
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
2024-07-04 12:24:58 +00:00
system.stateVersion = "24.05"; # Did you read the comment?
2023-11-15 16:09:47 +00:00
}