2024-03-08 22:46:38 +01: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, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2024-08-11 22:48:30 +02:00
|
|
|
|
imports = [
|
|
|
|
|
nixos/desktop/printing
|
|
|
|
|
];
|
2024-03-08 22:46:38 +01:00
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
|
boot.loader.grub.useOSProber = false;
|
|
|
|
|
|
|
|
|
|
# Setup keyfile
|
|
|
|
|
boot.initrd.secrets = {
|
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable grub cryptodisk
|
|
|
|
|
boot.loader.grub.enableCryptodisk = true;
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."luks-efc0285c-812e-4946-936b-37e737fb72eb".keyFile = "/crypto_keyfile.bin";
|
|
|
|
|
|
|
|
|
|
# allow crosscompiling for raspberrypi
|
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "lift";
|
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
2024-06-10 19:38:56 +02:00
|
|
|
|
systemd.network.wait-online.enable = false;
|
|
|
|
|
boot.initrd.systemd.network.wait-online.enable = false;
|
2024-03-08 22:46:38 +01:00
|
|
|
|
|
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure console keymap
|
|
|
|
|
console.keyMap = "de-latin1-nodeadkeys";
|
|
|
|
|
|
|
|
|
|
# Enable scanning
|
|
|
|
|
hardware.sane.enable = true;
|
2024-07-05 21:36:38 +02:00
|
|
|
|
# Workaround for https://github.com/NixOS/nixpkgs/issues/273280
|
|
|
|
|
hardware.sane.backends-package = pkgs.sane-backends.overrideAttrs (old: {
|
|
|
|
|
configureFlags = (old.configureFlags or []) ++ [
|
|
|
|
|
"--disable-locking"
|
|
|
|
|
];
|
|
|
|
|
});
|
2024-03-08 22:46:38 +01:00
|
|
|
|
|
2024-09-30 21:23:03 +02:00
|
|
|
|
hardware.keyboard.zsa.enable = true;
|
2024-03-09 22:37:11 +01:00
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
2024-03-08 22:46:38 +01:00
|
|
|
|
# bluetooth
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
# hardware.pulseaudio.enable = false;
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.rothe = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "rothe";
|
2024-11-16 19:11:04 +01:00
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "incus-admin" "dialout" ];
|
2024-03-08 22:46:38 +01:00
|
|
|
|
shell = pkgs.fish;
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
chromium
|
|
|
|
|
firefox
|
2024-03-09 22:37:11 +01:00
|
|
|
|
logseq
|
2024-03-08 22:46:38 +01:00
|
|
|
|
thunderbird
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-09-11 21:46:16 +02:00
|
|
|
|
# TODO remove with the next major release, workaround for logseq not working
|
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
|
"electron-27.3.11"
|
|
|
|
|
];
|
2024-03-08 22:46:38 +01:00
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-09-11 21:46:16 +02:00
|
|
|
|
|
2024-03-08 22:46:38 +01:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
ack
|
|
|
|
|
avrdude
|
|
|
|
|
bind
|
|
|
|
|
calibre
|
|
|
|
|
cmake
|
|
|
|
|
cryptsetup
|
|
|
|
|
curl
|
|
|
|
|
dracula-theme
|
|
|
|
|
evince
|
|
|
|
|
ffmpeg
|
|
|
|
|
fish
|
|
|
|
|
foot
|
|
|
|
|
fzf
|
|
|
|
|
gammastep
|
|
|
|
|
gcc
|
|
|
|
|
gimp
|
|
|
|
|
git
|
|
|
|
|
glib
|
|
|
|
|
gnome.eog
|
|
|
|
|
gnome.nautilus
|
|
|
|
|
gnome.simple-scan
|
|
|
|
|
gnucash
|
|
|
|
|
gnumake
|
|
|
|
|
gnupg
|
|
|
|
|
google-cloud-sdk
|
|
|
|
|
inkscape
|
|
|
|
|
ispell
|
|
|
|
|
keychain
|
|
|
|
|
libreoffice
|
|
|
|
|
mosquitto
|
|
|
|
|
mypy
|
|
|
|
|
nmap
|
|
|
|
|
pass-secret-service
|
|
|
|
|
pavucontrol
|
|
|
|
|
portfolio
|
2024-11-02 16:29:02 +01:00
|
|
|
|
prusa-slicer
|
2024-03-08 22:46:38 +01:00
|
|
|
|
pulseaudio
|
|
|
|
|
signal-desktop
|
|
|
|
|
spotify
|
|
|
|
|
sqlite
|
|
|
|
|
syncthing
|
|
|
|
|
tailscale
|
|
|
|
|
tmux
|
|
|
|
|
tree
|
|
|
|
|
unzip
|
|
|
|
|
vim-full
|
|
|
|
|
vlc
|
2024-09-30 21:23:03 +02:00
|
|
|
|
wally-cli
|
2024-03-08 22:46:38 +01:00
|
|
|
|
wayshot
|
|
|
|
|
wdisplays
|
|
|
|
|
wget
|
|
|
|
|
wl-clipboard
|
|
|
|
|
xdg-utils
|
|
|
|
|
yt-dlp
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
|
enable = true;
|
|
|
|
|
wlr.enable = true;
|
|
|
|
|
# gtk portal needed to make gtk apps happy
|
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
2024-03-09 22:37:11 +01:00
|
|
|
|
config.common.default = "*";
|
2024-03-08 22:46:38 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-16 23:52:53 +01:00
|
|
|
|
programs = {
|
|
|
|
|
fish.enable = true;
|
|
|
|
|
gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
|
|
|
|
light.enable = true;
|
2024-03-08 22:46:38 +01:00
|
|
|
|
};
|
|
|
|
|
# List services that you want to enable:
|
2024-03-08 22:50:50 +01:00
|
|
|
|
services.resolved = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
# xdg-desktop-portal works by exposing a series of D-Bus interfaces
|
|
|
|
|
# known as portals under a well-known name
|
|
|
|
|
# (org.freedesktop.portal.Desktop) and object path
|
|
|
|
|
# (/org/freedesktop/portal/desktop).
|
|
|
|
|
# The portal interfaces include APIs for file access, opening URIs,
|
|
|
|
|
# printing and others.
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
};
|
|
|
|
|
services.passSecretService.enable = true;
|
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
|
services.gvfs.enable = true;
|
2024-11-13 20:00:16 +01:00
|
|
|
|
|
|
|
|
|
services.greetd = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
default_session = {
|
|
|
|
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --asterisks --cmd sway";
|
|
|
|
|
user = "rothe";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-08-11 22:48:30 +02:00
|
|
|
|
|
2024-03-08 22:50:50 +01:00
|
|
|
|
services.blueman.enable = true;
|
2024-11-15 22:56:54 +01:00
|
|
|
|
services.fwupd.enable = true;
|
2024-03-08 22:50:50 +01:00
|
|
|
|
services.syncthing = {
|
|
|
|
|
enable = true;
|
|
|
|
|
user = "rothe";
|
|
|
|
|
group = "users";
|
|
|
|
|
dataDir = "/home/rothe";
|
|
|
|
|
overrideFolders = false;
|
|
|
|
|
overrideDevices = false;
|
|
|
|
|
};
|
2024-03-08 22:46:38 +01:00
|
|
|
|
|
2024-09-11 21:30:18 +02:00
|
|
|
|
networking.nftables = {
|
2024-03-08 22:50:50 +01:00
|
|
|
|
enable = true;
|
2024-03-08 22:46:38 +01:00
|
|
|
|
};
|
2024-09-11 21:30:18 +02:00
|
|
|
|
networking.firewall.trustedInterfaces = [ "incusbr0" ];
|
2024-03-08 22:46:38 +01:00
|
|
|
|
# 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).
|
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
virtualisation = {
|
2024-09-11 21:30:18 +02:00
|
|
|
|
incus.enable = false;
|
2024-10-19 22:52:46 +02:00
|
|
|
|
podman.enable = true;
|
2024-03-08 22:46:38 +01:00
|
|
|
|
};
|
2024-07-07 22:27:02 +02:00
|
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
|
enable = true;
|
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
|
};
|
2024-03-08 22:46:38 +01:00
|
|
|
|
}
|