feat(hosts): add home config for steamdeck
This commit is contained in:
@@ -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"];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkXdss1nRdBcl/8bjDssPaS68ozWw8sP98OsO+7iqi1 lucien@phundrak.com
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user