diff --git a/flake.nix b/flake.nix index 0545d51..1d46638 100644 --- a/flake.nix +++ b/flake.nix @@ -146,6 +146,10 @@ inherit extraSpecialArgs pkgs; 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 { inherit extraSpecialArgs pkgs; modules = withUserModules ./users/phundrak/host/tilo.nix; diff --git a/users/phundrak/ai.nix b/users/phundrak/ai.nix index f8e05de..5501ebc 100644 --- a/users/phundrak/ai.nix +++ b/users/phundrak/ai.nix @@ -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"]; diff --git a/users/phundrak/host/steamdeck.nix b/users/phundrak/host/steamdeck.nix new file mode 100644 index 0000000..0b132c2 --- /dev/null +++ b/users/phundrak/host/steamdeck.nix @@ -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; +} diff --git a/users/phundrak/keys/id_steamdeck.pub b/users/phundrak/keys/id_steamdeck.pub new file mode 100644 index 0000000..601f2b0 --- /dev/null +++ b/users/phundrak/keys/id_steamdeck.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkXdss1nRdBcl/8bjDssPaS68ozWw8sP98OsO+7iqi1 lucien@phundrak.com diff --git a/users/phundrak/light-home.nix b/users/phundrak/light-home.nix index 37793cb..b31ed48 100644 --- a/users/phundrak/light-home.nix +++ b/users/phundrak/light-home.nix @@ -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;