75 lines
2.1 KiB
Nix
75 lines
2.1 KiB
Nix
#
|
|
# 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 ssystem, swap files
|
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
|
#(import ../../modules/wm/virtualisation) ++ # Docker
|
|
(import ../../modules/services/nas) ++ # Server Services
|
|
(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;
|
|
pinentryPackage = pkgs.pinentry-curses;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
qemuGuest.enable = true;
|
|
avahi = { # Needed to find wireless printer
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
publish = { # Needed for detecting the scanner
|
|
enable = true;
|
|
addresses = true;
|
|
userServices = true;
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|