This commit is contained in:
Tyler Beckman 2025-01-06 18:51:02 -07:00
parent 2a15c44249
commit 0dad3d244e
Signed by: Ty
GPG key ID: 2813440C772555A4
5 changed files with 7 additions and 23 deletions

View file

@ -8,7 +8,6 @@
# Individual files # Individual files
./beets.nix ./beets.nix
./desktop.nix ./desktop.nix
./flatpak.nix
./firefox.nix ./firefox.nix
./gpg.nix ./gpg.nix
./gtk.nix ./gtk.nix

View file

@ -1,15 +0,0 @@
{ lib, config, ... }:
{
xdg.systemDirs.data = lib.optionals
config.meta.home-manager.desktop.enable
[ "/var/lib/flatpak/exports/share" "${config.xdg.dataHome}/flatpak/exports/share" ];
services.flatpak = lib.mkIf config.meta.home-manager.desktop.enable {
enableModule = true;
packages = [
"sober:app/org.vinegarhq.Sober/x86_64/master"
];
remotes = {
sober = "https://sober.vinegarhq.org/sober.flatpakref";
};
};
}

View file

@ -35,8 +35,8 @@
type = lib.types.str; type = lib.types.str;
default = "ty"; default = "ty";
defaultText = lib.literalExpression ''"ty"''; defaultText = lib.literalExpression ''"ty"'';
description = "The username to apply the config as"; description = "The username to apply the config as (only applies in standalone config)";
} };
interface = lib.mkOption { interface = lib.mkOption {
type = lib.types.enum [ "nixos" "nix-on-droid" ]; type = lib.types.enum [ "nixos" "nix-on-droid" ];

View file

@ -1,4 +1,4 @@
{ ... }: { inputs, config, ... }:
{ {
imports = [ imports = [
# Import plasma manager and all of my custom modules for use # Import plasma manager and all of my custom modules for use
@ -12,7 +12,7 @@
home = { home = {
stateVersion = "24.11"; stateVersion = "24.11";
username = meta.home-manager.username; username = config.meta.home-manager.username;
homeDirectory = /. + "/home/${meta.home-manager.username}"; homeDirectory = /. + "/home/${config.meta.home-manager.username}";
}; };
} }

View file

@ -4,9 +4,9 @@
system ? "x86_64-linux", system ? "x86_64-linux",
meta ? {} meta ? {}
}: inputs.home-manager.lib.homeManagerConfiguration { }: inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = import inputs.nixpkgs { inherit system; config.allowUnfree = true; };
modules = [ modules = [
./home-manager/standalone.nix ../home-manager/standalone.nix
{ meta.home-manager = meta; } { meta.home-manager = meta; }
]; ];
extraSpecialArgs = { extraSpecialArgs = {