feat(hosts): add home config for steamdeck

This commit is contained in:
2026-06-13 11:49:37 +02:00
parent 8e3d2fe850
commit e617c96c24
7 changed files with 105 additions and 68 deletions
+5 -2
View File
@@ -1,6 +1,6 @@
{config, ...}: {
{config, lib, ...}: {
home.dev.ai = {
enable = true;
enable = lib.mkDefault true;
opencode = {
tui = {
mouse = true;
@@ -32,12 +32,15 @@
"*" = "ask";
glob = "allow";
grep = "allow";
skill = "allow";
question = "allow";
read = {
"*" = "allow";
"*.env" = "deny";
"*.env.*" = "deny";
"*.env.example" = "allow";
};
"doom_loop" = "deny";
};
formatter.nixfmt = {
command = ["nix" "fmt" "$FILE"];
+14
View File
@@ -0,0 +1,14 @@
{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;
};
stateVersion = "25.11";
};
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];
options.home.phundrak = {
username = mkOption {
default = "phundrak";
type = types.str;
};
sshKey = {
content = mkOption {
type = types.nullOr types.str;
@@ -41,8 +45,8 @@ in {
};
home = {
username = "phundrak";
homeDirectory = "/home/phundrak";
username = cfg.username;
homeDirectory = "/home/${cfg.username}";
packages = [pkgs.tree pkgs.ncdu];
preferXdgDirectories = true;