move programs to home-manager modules

This commit is contained in:
lucy 2026-08-31 23:48:18 +02:00
commit 6413f1f1c3
2 changed files with 17 additions and 15 deletions

View file

@ -31,30 +31,19 @@
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem { nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
# set the theme # set the theme
./theme.nix ./modules/themeing
({ pkgs, ... }: {
config.theming.theme = "gruvbox-dark-hard";
config.theming.font = "Iosevka";
config.theming.fontPackage = pkgs.iosevka;
})
base16.nixosModule
({ config, ... }: { scheme = "${config.theming.theme}"; })
# import nixos & hm configuration
./modules/hosts/nerv/configuration.nix ./modules/hosts/nerv/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.lucy = ./modules/hosts/nerv/home.nix; home-manager.extraSpecialArgs = { inherit inputs; };
imports = [ imports = [
./modules/themeing ./modules/themeing
./modules/programs ./modules/programs
]; ];
home-manager.users.lucy = ./modules/hosts/nerv/home.nix;
} }
]; ];
}; };

View file

@ -1,4 +1,12 @@
{ lib, inputs, ...}: { {
lib,
inputs,
pkgs,
config,
...
}:
{
imports = [ inputs.base16.nixosModule ];
options.theming.theme = lib.mkOption { options.theming.theme = lib.mkOption {
type = lib.types.str; type = lib.types.str;
apply = name: "${inputs.tt-schemes}/base16/${name}.yaml"; apply = name: "${inputs.tt-schemes}/base16/${name}.yaml";
@ -9,4 +17,9 @@
options.theming.fontPackage = lib.mkOption { options.theming.fontPackage = lib.mkOption {
type = lib.types.package; type = lib.types.package;
}; };
config.theming.theme = "catppuccin-mocha";
config.theming.font = "Iosevka";
config.theming.fontPackage = pkgs.iosevka;
config.scheme = config.theming.theme;
} }