nixos-config/hosts/nbf5/default.nix

98 lines
3.0 KiB
Nix
Raw Normal View History

2022-09-17 16:50:50 +02:00
#
# Specific system configuration settings for desktop
#
# flake.nix
# ├─ ./hosts
# │ └─ ./laptop
# │ ├─ default.nix *
# │ └─ hardware-configuration.nix
# └─ ./modules
# ├─ ./desktop
# │ └─ ./hyprland
# │ └─ hyprland.nix
# ├─ ./modules
# │ └─ ./programs
# │ └─ waybar.nix
# └─ ./hardware
# └─ default.nix
#
{ config, pkgs, user, ... }:
{
imports = # For now, if applying to other system, swap files
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
2024-05-19 17:57:35 +02:00
#[(import ../../modules/wm/hyprland/default.nix)] ++ # Window Manager
[(import ../../modules/wm/sway/default.nix)] ++ # Window Manager
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
[(import ../../modules/wm/virtualisation/kvm-intel.nix)] ++ # kvm module options
2022-09-17 16:50:50 +02:00
(import ../../modules/hardware); # Hardware devices
boot = { # Boot options
kernelPackages = pkgs.linuxPackages_latest;
loader = { # EFI Boot
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
timeout = 1; # Grub auto select time
};
};
# hardware.sane = { # Used for scanning with Xsane
# enable = false;
# extraBackends = [ pkgs.sane-airscan ];
# };
2022-11-06 17:01:18 +01:00
hardware = {
nitrokey.enable = true;
};
2022-09-17 16:50:50 +02:00
2022-09-30 23:16:32 +02:00
environment = {
systemPackages = with pkgs; [
2022-09-17 16:50:50 +02:00
# simple-scan
2022-09-30 23:16:32 +02:00
intel-media-driver
2022-10-09 14:01:59 +02:00
# alacritty
2022-09-30 23:16:32 +02:00
];
};
2022-09-17 16:50:50 +02:00
programs = { # No xbacklight, this is the alterantive
light.enable = true;
};
services = {
2023-04-01 10:15:47 +02:00
tlp = {
enable = true; # TLP and auto-cpufreq for power management
settings = {
USB_DENYLIST="fc32:1287 1e7d:2e4a 1d5c:5500 1d5c:5510";
};
};
2023-01-08 13:47:56 +01:00
logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed
2022-11-06 17:01:18 +01:00
#auto-cpufreq.enable = true;
2022-09-17 16:50:50 +02:00
blueman.enable = true;
printing = { # Printing and drivers for TS5300
enable = true;
drivers = [ pkgs.gutenprint ];
};
avahi = { # Needed to find wireless printer
enable = true;
2024-06-04 21:11:04 +02:00
nssmdns4 = true;
2022-09-17 16:50:50 +02:00
publish = { # Needed for detecting the scanner
enable = true;
addresses = true;
userServices = true;
};
};
2022-12-20 19:45:11 +01:00
tailscale.enable = true;
2022-09-17 16:50:50 +02:00
};
#temporary bluetooth fix
# systemd.tmpfiles.rules = [
# "d /var/lib/bluetooth 700 root root - -"
# ];
# systemd.targets."bluetooth".after = ["systemd-tmpfiles-setup.service"];
}