sources: module init

This commit is contained in:
Zynh Ludwig 2024-08-07 04:40:10 -07:00
parent c85f5e013b
commit 9ef497f991
3 changed files with 19 additions and 10 deletions

17
home/modules/sources.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, inputs, config, ... }:
let
cfg = config.snowhawk.sources;
in
{
options.snowhawk.sources = {
enable = lib.mkEnableOption "nix sources home-manager module";
};
config = lib.mkIf cfg.enable {
home.file = {
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
};
}

View file

@ -8,6 +8,7 @@
snowhawk = {
alacritty.enable = true;
macos.enable = true;
sources = true;
ssh = {
enable = true;
homeNetwork = true;
@ -41,11 +42,6 @@
fzf
];
home.file = {
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.stateVersion = "23.11";

View file

@ -25,6 +25,7 @@ in
xivlauncher.enable = true;
flameshot.enable = true;
tldr.enable = true;
sources.enable = true;
};
snowhawk.ssh = {
enable = true;
@ -86,11 +87,6 @@ in
nomacs
];
home.file = {
"src/nixpkgs".source = inputs.nixpkgs;
"src/home-manager".source = inputs.home-manager;
};
# wayland.windowManager.hyprland = {
# enable = true;
# package = pkgs.hyprland;