reworking

This commit is contained in:
2025-08-18 18:27:26 -05:00
parent fc7866349e
commit 04a831de7e
45 changed files with 384 additions and 1074 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ config, lib, pkgs, inputs, ... }: {
imports = [
./programs
@@ -7,34 +7,25 @@
./dotfiles
];
options.homeconfig = {
host = lib.options.mkOption {
type = lib.types.str;
default = null;
};
home-manager.enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf (config.homeconfig.username == "nathan") {
config = {
homeconfig = {
mpd.enable = lib.mkDefault true;
calcurse.enable = lib.mkDefault true;
git.enable = lib.mkDefault true;
nh.enable = lib.mkDefault true;
};
home.stateVersion = "23.11";
home.username = "nathan";
home.homeDirectory = "/home/nathan";
home.pointerCursor = {
home.pointerCursor = lib.mkIf config.homeconfig.graphical {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 16;
};
gtk = {
gtk = lib.mkIf config.homeconfig.graphical {
enable = true;
theme.name = "Tokyonight-Dark";
theme.package = pkgs.tokyonight-gtk-theme;
@@ -43,16 +34,26 @@
};
sops = {
age.keyFile = "/home/nathan/.config/sops/age/keys.txt";
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml";
};
nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = {
experimental-features = [ "nix-command" "flakes" ];
};
distributedBuilds = config.sysconfig.remoteBuildClient;
buildMachines = lib.mkIf config.sysconfig.remoteBuildClient {};
trusted-users = lib.mkIf config.sysconfig.remoteBuildHost [ config.users.users."remote-builder".name ];
};
services.mpris-proxy.enable = true;
programs.ssh.enable = true;
programs.home-manager.enable = config.homeconfig.home-manager.enable;
};
}