feat(hosts): add home config for steamdeck

This commit is contained in:
2026-06-13 11:49:37 +02:00
parent c2485cc0db
commit d1c066e592
10 changed files with 116 additions and 79 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ in {
services.blueman-applet.enable = ! caelestiaEnabled;
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = false;
systemd.enable = true;
importantPrefixes = ["$left" "$right" "$up" "$down" "$menu"];
settings = {
env = [
+6 -4
View File
@@ -1,6 +1,6 @@
{config, ...}: {
{config, lib, ...}: {
home.dev.ai = {
enable = true;
enable = lib.mkDefault true;
opencode = {
tui = {
mouse = true;
@@ -18,9 +18,8 @@
autoupdate = false;
provider = {
ollama = {
npm = "@ai-sdk/openai-compatible";
name = "Ollama (marpa)";
options.baseURL = "http://marpa:11434/v1";
options.baseURL = "http://marpa:11434";
};
models = {
"qwen3.5:9b".name = "Qwen 3.5 Medium";
@@ -32,12 +31,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"];
+5 -4
View File
@@ -66,10 +66,11 @@
" tabopen was on t move to j (bépo's 'find char to' position)
bind j fillcmdline tabopen
unbind ^http(s?)://youtube\.com f
unbind ^http(s?)://youtube\.com t
unbind ^http(s?)://youtube\.com l
unbind ^http(s?)://youtube\.com j
unbind ^http(s?)://(www\.)?youtube\.com c
unbind ^http(s?)://(www\.)?youtube\.com f
unbind ^http(s?)://(www\.)?youtube\.com t
unbind ^http(s?)://(www\.)?youtube\.com l
unbind ^http(s?)://(www\.)?youtube\.com j
unbind ^http(s?)://twitch\.tv f
bind n findnext
+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;