nix-da/hosts/marr/default.nix
nydragon cadf68694e
Some checks are pending
/ test (push) Waiting to run
chore: disable printing and change git email
2025-03-25 20:36:51 +01:00

183 lines
3.3 KiB
Nix

# vim:fileencoding=utf-8:foldmethod=marker
{
pkgs,
inputs,
config,
...
}:
let
inherit (config.modules.meta) username;
in
{
imports = [
./hardware-configuration.nix
./home.nix
../../users/ny
];
time.timeZone = "Europe/Paris";
modules = {
media.enableAll = true;
fs.nfsEnable = true;
system = {
roles = {
desktop.enable = true;
portable.enable = true;
};
outputs = {
eDP-1 = {
resX = 3840;
resY = 2400;
scale = 2.0;
};
};
networking = {
bluetooth.enable = true;
wifi.enable = true;
};
};
services = {
cliphist.enable = true;
nysh.enable = true;
tailscale = {
enable = true;
tags = [ "client" ];
};
udev = {
enable = true;
libvirtHotplug."archlinux" = [
"303a/1001/*" # Espressif JTG debug unit
];
};
};
};
# Bootloader.
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
xdg = {
portal.enable = true;
};
specialisation = {
gpu.configuration = {
imports = [ inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia ];
};
};
age = {
identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets.rustypaste = {
file = ../../secrets/rustypaste.age;
mode = "440";
group = "wheel";
};
};
programs = {
dconf.enable = true;
fish.enable = true;
firefox.enable = true;
thunderbird.enable = true;
hyprland.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
enableExtraSocket = true;
};
seahorse.enable = true;
};
#hardware.sane = {
#enable = true;
#extraBackends = [ pkgs.hplipWithPlugin ];
#};
services = {
displayManager.sddm.enable = true;
dbus.enable = true;
fwupd.enable = true;
gvfs.enable = true;
#printing.enable = true;
xserver.xkb = {
layout = "fr";
variant = "";
};
pipewire.enable = true;
gnome.gnome-keyring.enable = true;
#: Power Consumption {{{
logind = {
lidSwitch = "suspend-then-hibernate";
powerKey = "hibernate";
};
#thermald.enable = true;
#auto-cpufreq.enable = true;
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
#:}}}
};
console.keyMap = "fr";
users = {
defaultUserShell = pkgs.fish;
users.${username} = {
isNormalUser = true;
createHome = true;
packages = with pkgs; [
simple-scan
beekeeper-studio
];
extraGroups = [
"networkmanager"
"audio"
"libvirtd" # VM OPs
];
};
};
environment.variables = {
ELECTRON_OZONE_PLATFORM_HINT = "auto";
MOZ_ENABLE_WAYLAND = 1;
};
security.polkit.enable = true;
virtualisation = {
libvirtd.enable = true;
docker = {
enable = true;
extraPackages = [ pkgs.docker-credential-helpers ];
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
programs.virt-manager.enable = true;
environment.systemPackages = with pkgs; [
brightnessctl
];
system.stateVersion = "24.11";
}