separated programs directory
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
flake.homeModules.home = {
|
|
||||||
# TODO: Port custom settings from the old top-level ./home.nix into here.
|
|
||||||
};
|
|
||||||
}
|
|
||||||
13
modules/home-manager/profiles/base.nix
Normal file
13
modules/home-manager/profiles/base.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ inputs, pkgs, ... }:
|
||||||
|
{
|
||||||
|
flake.homeModules.base = { pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = with inputs.self.homeModules; [
|
||||||
|
rebuild
|
||||||
|
ssh
|
||||||
|
sops
|
||||||
|
git
|
||||||
|
shell-tools
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gdu
|
gdu
|
||||||
|
lf
|
||||||
# TODO: find a CLI file editor that's not insane
|
# TODO: find a CLI file editor that's not insane
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -15,8 +15,8 @@ in
|
|||||||
flake.homeModules.sops = { inputs, config, pkgs, lib, ... }:
|
flake.homeModules.sops = { inputs, config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
sopsBin = lib.getExe pkgs.sops;
|
sopsBin = lib.getExe pkgs.sops;
|
||||||
sopsConfigPath = ../../.sops.yaml;
|
sopsConfigPath = ../../../.sops.yaml;
|
||||||
sopsSecretsPath = ../../keys/secrets.yaml;
|
sopsSecretsPath = ../../../keys/secrets.yaml;
|
||||||
ageKeyFile = "${config.xdg.configHome}/sops/age/keys.txt";
|
ageKeyFile = "${config.xdg.configHome}/sops/age/keys.txt";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -10,12 +10,7 @@
|
|||||||
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
|
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
|
||||||
|
|
||||||
imports = with inputs.self.homeModules; [
|
imports = with inputs.self.homeModules; [
|
||||||
rebuild
|
base
|
||||||
sops
|
|
||||||
git
|
|
||||||
ssh
|
|
||||||
shell-tools
|
|
||||||
home # placeholder
|
|
||||||
docker
|
docker
|
||||||
sublime
|
sublime
|
||||||
desktop
|
desktop
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
{ inputs, ... }:
|
|
||||||
let
|
|
||||||
userName = "john";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flake.modules.nixos.user =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
users.users."${userName}" = {
|
|
||||||
name = "${userName}";
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
home-manager.users."${userName}" = {
|
|
||||||
imports = [
|
|
||||||
inputs.self.homeModules."${userName}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ inputs, self, ... }:
|
|
||||||
let
|
|
||||||
userName = "sydney";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flake.homeModules."${userName}" = {
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user