2023-09-03 10:18:04 +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, ... }:
|
|
|
|
|
|
|
|
{
|
2023-10-01 09:22:19 +02:00
|
|
|
imports = # For now, if applying to other ssystem, swap files
|
2023-09-03 10:18:04 +02:00
|
|
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
2024-05-19 17:57:35 +02:00
|
|
|
#(import ../../modules/wm/virtualisation) ++ # Docker
|
2023-09-03 19:39:29 +02:00
|
|
|
(import ../../modules/services/nas) ++ # Server Services
|
2023-09-03 10:18:04 +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
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# environment = {
|
|
|
|
# systemPackages = with pkgs; [
|
|
|
|
## simple-scan
|
|
|
|
## intel-media-driver
|
|
|
|
## alacritty
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
|
|
|
|
programs = { # No xbacklight, this is the alterantive
|
|
|
|
zsh.enable = true;
|
|
|
|
ssh.startAgent = false;
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = false;
|
|
|
|
enableSSHSupport = true;
|
2024-06-03 20:24:22 +02:00
|
|
|
pinentryPackage = pkgs.pinentry-curses;
|
2023-09-03 10:18:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2023-10-01 20:24:46 +02:00
|
|
|
qemuGuest.enable = true;
|
2023-09-03 10:18:04 +02:00
|
|
|
avahi = { # Needed to find wireless printer
|
|
|
|
enable = true;
|
2024-06-04 21:11:04 +02:00
|
|
|
nssmdns4 = true;
|
2023-09-03 10:18:04 +02:00
|
|
|
publish = { # Needed for detecting the scanner
|
|
|
|
enable = true;
|
|
|
|
addresses = true;
|
|
|
|
userServices = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|