105 lines
2.3 KiB
Nix
105 lines
2.3 KiB
Nix
{ config, pkgs, ... }: {
|
|
boot.kernelParams = [ "hibernate.compressor=lz4" ];
|
|
environment.systemPackages = with pkgs; [
|
|
android-tools
|
|
binutils
|
|
binwalk
|
|
exfat
|
|
nixfmt-tree
|
|
qemu
|
|
qrencode
|
|
];
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
graphics.enable32Bit = true;
|
|
};
|
|
imports = [
|
|
../mods/host.nix
|
|
./hardware.nix
|
|
];
|
|
networking = {
|
|
firewall.allowedTCPPorts = [ 8000 ];
|
|
hostName = "nixos-desktop";
|
|
networkmanager.ensureProfiles.profiles = {
|
|
home-wifi = {
|
|
ipv4.addresses = "10.1.0.3/16";
|
|
ipv6.addresses = "fc01::3/64";
|
|
};
|
|
phone-wifi = {
|
|
connection = {
|
|
id = "phone-wifi";
|
|
type = "wifi";
|
|
};
|
|
wifi-security = {
|
|
key-mgmt = "sae";
|
|
psk = "$HELLO_WORLD_PSK";
|
|
};
|
|
wifi.ssid = "Hello world";
|
|
};
|
|
};
|
|
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg2-conf.path;
|
|
};
|
|
programs = {
|
|
niri.enable = true;
|
|
virt-manager.enable = true;
|
|
};
|
|
services = {
|
|
displayManager.noctalia-greeter = {
|
|
cursorTheme = {
|
|
name = "Bibata-Modern-Amber";
|
|
package = pkgs.bibata-cursors;
|
|
};
|
|
enable = true;
|
|
passwordlessSyncUsers = [ "bogale" ];
|
|
settings.cursor.size = 24;
|
|
};
|
|
greetd = {
|
|
enable = true;
|
|
settings.default_session = {
|
|
command = "${pkgs.noctalia-greeter}/bin/noctalia-greeter-session";
|
|
user = "greeter";
|
|
};
|
|
};
|
|
pipewire = {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
};
|
|
tuned.enable = true;
|
|
upower = {
|
|
allowRiskyCriticalPowerAction = true;
|
|
criticalPowerAction = "Suspend";
|
|
enable = true;
|
|
percentageCritical = 10;
|
|
};
|
|
};
|
|
sops = {
|
|
secrets = {
|
|
awg2-spec = { };
|
|
bogale-passwd = { };
|
|
};
|
|
templates.awg2-conf.content = ''
|
|
${config.sops.placeholder.awg-obf}
|
|
${config.sops.placeholder.awg2-spec}
|
|
'';
|
|
};
|
|
users.users.bogale = {
|
|
extraGroups = [
|
|
"libvirtd"
|
|
"networkmanager"
|
|
"wheel"
|
|
];
|
|
hashedPasswordFile = config.sops.secrets.bogale-passwd.path;
|
|
isNormalUser = true;
|
|
uid = 1551;
|
|
};
|
|
virtualisation = {
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
swtpm.enable = true;
|
|
vhostUserPackages = [ pkgs.virtiofsd ];
|
|
};
|
|
};
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
}
|