move programs to home-manager modules
This commit is contained in:
parent
f605ddd073
commit
6413f1f1c3
2 changed files with 17 additions and 15 deletions
17
flake.nix
17
flake.nix
|
|
@ -31,30 +31,19 @@
|
|||
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
||||
# set the theme
|
||||
./theme.nix
|
||||
({ 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/themeing
|
||||
./modules/hosts/nerv/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.lucy = ./modules/hosts/nerv/home.nix;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
imports = [
|
||||
./modules/themeing
|
||||
./modules/programs
|
||||
|
||||
];
|
||||
home-manager.users.lucy = ./modules/hosts/nerv/home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,12 @@
|
|||
{ lib, inputs, ...}: {
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ inputs.base16.nixosModule ];
|
||||
options.theming.theme = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
apply = name: "${inputs.tt-schemes}/base16/${name}.yaml";
|
||||
|
|
@ -9,4 +17,9 @@
|
|||
options.theming.fontPackage = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
};
|
||||
|
||||
config.theming.theme = "catppuccin-mocha";
|
||||
config.theming.font = "Iosevka";
|
||||
config.theming.fontPackage = pkgs.iosevka;
|
||||
config.scheme = config.theming.theme;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue