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