move home.nix to main config

This commit is contained in:
Noah Masur 2022-04-28 21:23:43 -04:00
parent 7296c0fefc
commit cb66ca402e
3 changed files with 22 additions and 21 deletions

View File

@ -39,6 +39,7 @@
modules = [
./nixos/configuration.nix
./nixos/hardware-configuration.nix
./nixos/home.nix
./modules/system/timezone.nix
./modules/system/doas.nix
./modules/gaming
@ -55,7 +56,6 @@
};
users.${user} = {
imports = [
./nixos/home.nix
./modules/applications/alacritty.nix
./modules/shell/fish.nix
./modules/shell/utilities.nix

View File

@ -1,4 +1,20 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }:
let
ignorePatterns = ''
!.env*
!.github/
!.gitignore
!*.tfvars
.terraform/
.target/
/Library/
keybase/
kbfs/
'';
in {
home.packages = with pkgs; [
unzip
@ -20,8 +36,8 @@
];
home.file = {
".rgignore".text = config.ignorePatterns;
".fdignore".text = config.ignorePatterns;
".rgignore".text = ignorePatterns;
".fdignore".text = ignorePatterns;
};
}

View File

@ -1,27 +1,12 @@
{ pkgs, user, lib, ... }:
{ pkgs, lib, user, ... }:
let
notes_path = "$HOME/dev/personal/notes";
ignore_patterns = ''
!.env*
!.github/
!.gitignore
!*.tfvars
.terraform/
.target/
/Library/
keybase/
kbfs/
'';
in {
options = with lib; {
ignorePatterns = mkOption { default = ignore_patterns; };
};
home-manager.users.${user} = {
config = {
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [