Update Steam Deck config

This commit is contained in:
Invariantspace 2024-03-02 15:29:23 -08:00
parent 4dedb233de
commit 6a3170bad9
11 changed files with 53 additions and 44 deletions

View file

@ -1,8 +1,7 @@
{ config, ... }: { ... }:
{ {
networking = let const = config.constants; in { networking = {
domain = const.domain;
hostId = "30f8f777"; hostId = "30f8f777";
networkmanager = { networkmanager = {
enable = true; enable = true;

View file

@ -1,9 +1,7 @@
{ config, ... }: { ... }:
{ {
networking = { networking = {
domain = config.constants.domain;
firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ];
hostId = "3ddd2ad2"; hostId = "3ddd2ad2";
nftables.enable = true; nftables.enable = true;
}; };

View file

@ -2,7 +2,6 @@
{ {
networking = { networking = {
domain = config.constants.domain;
firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ]; firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ];
hostId = "e6449321"; hostId = "e6449321";
networkmanager = { networkmanager = {

View file

@ -6,7 +6,11 @@
{ {
# Configuration boot # Configuration boot
boot.loader.grub.device = "nodev"; boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
timeout = 0;
};
# Change secrets file # Change secrets file
constants.sopsFile = ../../common/auths.yaml; constants.sopsFile = ../../common/auths.yaml;

View file

@ -7,9 +7,11 @@
] ++ [ ] ++ [
./configuration.nix ./configuration.nix
./disko.nix ./disko.nix
./gui.nix
./hardware-configuration.nix ./hardware-configuration.nix
./locale.nix
./network.nix ./network.nix
# ./syncthing.nix ./syncthing.nix
./tailscale.nix ./tailscale.nix
./zfs.nix ./zfs.nix
../../common ../../common

View file

@ -3,6 +3,7 @@
let usr = config.constants.userName; in { let usr = config.constants.userName; in {
jovian = { jovian = {
decky-loader.enable = true; decky-loader.enable = true;
devices.steamdeck.enable = true;
steam = { steam = {
enable = true; enable = true;
autoStart = true; autoStart = true;

View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
# Configure default fonts
fonts = {
fontconfig.defaultFonts = {
serif = [ "Noto Serif" "WenQuanYi Zen Hei" ];
sansSerif = [ "Inter" "WenQuanYi Zen Hei" ];
monospace = [ "Iosevka" "WenQuanYi Zen Hei Mono" ];
};
packages = with pkgs; [
inter
iosevka
noto-fonts
noto-fonts-emoji
wqy_zenhei
];
};
}

View file

@ -1,17 +1,10 @@
{ config, ... }: { ... }:
let hn = config.networking.hostName; in { {
networking = { networking = {
domain = config.constants.domain; hostId = "74247225";
firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ]; networkmanager.enable = true;
hostId = "e6449321";
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
nftables.enable = true; nftables.enable = true;
tempAddresses = "disabled";
wireless.iwd.enable = true;
}; };
services.openssh.enable = true; services.openssh.enable = true;
} }

View file

@ -8,20 +8,20 @@
openDefaultPorts = true; openDefaultPorts = true;
overrideDevices = true; overrideDevices = true;
overrideFolders = true; overrideFolders = true;
settings = let pc = "blitzar"; in { # settings = let pc = "blitzar"; in {
devices.${pc} = { # devices.${pc} = {
name = pc; # name = pc;
id = "KGCBCIZ-GG6KMQ2-FLK5BWW-GLCEDML-5LCI24S-UKO5UWL-HWNCPYX-ZWWD5AQ"; # id = "KGCBCIZ-GG6KMQ2-FLK5BWW-GLCEDML-5LCI24S-UKO5UWL-HWNCPYX-ZWWD5AQ";
}; # };
folders.music = { # folders.music = {
enable = true; # enable = true;
devices = [ pc ]; # devices = [ pc ];
id = "Music"; # id = "Music";
label = "Music"; # label = "Music";
path = "~/Music"; # path = "~/Music";
type = "receiveonly"; # type = "receiveonly";
}; # };
}; # };
user = config.constants.userName; user = config.constants.userName;
}; };
} }

View file

@ -1,12 +1,8 @@
{ config, ... }: { ... }:
{ {
boot = { boot.zfs.enableUnstable = true;
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
loader.grub.zfsSupport = true;
zfs.enableUnstable = true;
};
services.zfs = { services.zfs = {
autoScrub.enable = true; autoScrub.enable = true;

View file

@ -2,10 +2,7 @@
let hn = config.networking.hostName; in { let hn = config.networking.hostName; in {
networking = { networking = {
domain = config.constants.domain; firewall.allowedTCPPorts = with config.constants.port; [ http https ];
firewall = {
allowedTCPPorts = with config.constants.port; [ http https ];
};
hostId = "2cadb253"; hostId = "2cadb253";
nftables.enable = true; nftables.enable = true;
}; };