feat(hosts): add home config for steamdeck

This commit is contained in:
2026-06-13 11:49:37 +02:00
parent 8e3d2fe850
commit 0325cafec8
5 changed files with 29 additions and 4 deletions
+4
View File
@@ -146,6 +146,10 @@
inherit extraSpecialArgs pkgs; inherit extraSpecialArgs pkgs;
modules = withUserModules ./users/phundrak/host/pinetab2.nix; modules = withUserModules ./users/phundrak/host/pinetab2.nix;
}; };
"deck@pumo" = home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs pkgs;
modules = withUserModules ./users/phundrak/host/steamdeck.nix;
};
"phundrak@tilo" = home-manager.lib.homeManagerConfiguration { "phundrak@tilo" = home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs pkgs; inherit extraSpecialArgs pkgs;
modules = withUserModules ./users/phundrak/host/tilo.nix; modules = withUserModules ./users/phundrak/host/tilo.nix;
+5 -2
View File
@@ -1,6 +1,6 @@
{config, ...}: { {config, lib, ...}: {
home.dev.ai = { home.dev.ai = {
enable = true; enable = lib.mkDefault true;
opencode = { opencode = {
tui = { tui = {
mouse = true; mouse = true;
@@ -32,12 +32,15 @@
"*" = "ask"; "*" = "ask";
glob = "allow"; glob = "allow";
grep = "allow"; grep = "allow";
skill = "allow";
question = "allow";
read = { read = {
"*" = "allow"; "*" = "allow";
"*.env" = "deny"; "*.env" = "deny";
"*.env.*" = "deny"; "*.env.*" = "deny";
"*.env.example" = "allow"; "*.env.example" = "allow";
}; };
"doom_loop" = "deny";
}; };
formatter.nixfmt = { formatter.nixfmt = {
command = ["nix" "fmt" "$FILE"]; command = ["nix" "fmt" "$FILE"];
+13
View File
@@ -0,0 +1,13 @@
{config, ...}: {
import = [../home.nix];
home = {
cli.nh.flake = "${config.home.homeDirectory}/.dotfiles";
desktop.hyprland.enable = false;
phundrak.sshKey.content = builtins.readFile ../keys/id_steamdeck.pub;
dev.ai = {
enable = true;
ollama.enable = false;
};
};
programs.caelestia.enable = false;
}
+1
View File
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkXdss1nRdBcl/8bjDssPaS68ozWw8sP98OsO+7iqi1 lucien@phundrak.com
+6 -2
View File
@@ -10,6 +10,10 @@ in {
imports = [../modules ./zellij.nix]; imports = [../modules ./zellij.nix];
options.home.phundrak = { options.home.phundrak = {
username = mkOption {
default = "phundrak";
type = types.str;
};
sshKey = { sshKey = {
content = mkOption { content = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
@@ -41,8 +45,8 @@ in {
}; };
home = { home = {
username = "phundrak"; username = cfg.username;
homeDirectory = "/home/phundrak"; homeDirectory = "/home/${cfg.username}";
packages = [pkgs.tree pkgs.ncdu]; packages = [pkgs.tree pkgs.ncdu];
preferXdgDirectories = true; preferXdgDirectories = true;