better consistency, add dotfiles for takamaki and new features

This commit is contained in:
greyweather committed 2026-08-31 01:10:23 +01:00
1 parent 023fc0c424
commit 5c2a328858
35 files changed
+2455 -190

No files matched your search

+12 -6
View File
@@ -1,6 +1,6 @@
{ inputs, self, ... }: {
flake.homeModules.global = { lib, config, pkgs, ... }: {
nix.gc = {
nix.gc = lib.mkIf (!config.features.applications.cli.nh.enable) {
automatic = true;
persistent = true;
dates = "Sun 05:00";
@@ -25,18 +25,24 @@
username = "grey";
homeDirectory = "/home/${config.home.username}";
file = inputs.helpers.homeFilesFromStringAttrs {
dir = ".local/bin";
attrs = config.features.applications.shellScripts;
exec = true;
};
file = inputs.helpers.localBinFromStringAttrs config.features.applications.shellScripts;
};
targets.genericLinux.enable = config.info.isStandalone;
xdg = {
enable = true;
localBinInPath = true;
portal = lib.mkIf (config.info.isStandalone) {
enable = true;
xdgOpenUsePortal = true;
config.common.default = "*";
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome ];
};
};
services.gnome-keyring.enable = config.info.isStandalone;
programs = {
git = {
enable = true;
+12 -1
View File
@@ -8,7 +8,7 @@
"flakes"
];
gc = {
gc = lib.mkIf (!config.features.applications.cli.nh.enable) {
automatic = true;
persistent = true;
dates = "Sun 05:00";
@@ -90,5 +90,16 @@
isStandalone = lib.mkDefault false;
};
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config.common.default = "*";
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome ];
};
services.gnome.gnome-keyring.enable = true;
environment.pathsToLink = [ "/share/xdg-desktop-portal" "/share/applications" ]; # from description of this home-manager option: https://search.nixos.org/options?channel=26.05&query=xdg.portal.enable&source=home_manager&type=options
};
}
+1 -3
View File
@@ -19,9 +19,7 @@
};
components.bootLoader = lib.mkOption {
type = lib.types.enum (map (name: lib.removeSuffix ".nix" name) (
builtins.attrNames (builtins.readDir "${self}/modules/components/boot-loaders")
));
type = inputs.helpers.mkEnumFromDirContents "${self}/modules/components/boot-loaders";
default = "grub";
};