moved rebuild
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
flake.modules.homeManager.base = { pkgs, ... }:
|
flake.modules.homeManager.base = { pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
rebuild
|
|
||||||
git
|
git
|
||||||
shell-tools
|
shell-tools
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
|
let
|
||||||
|
hostname = "john-pc-ubuntu";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
flake.modules.homeManager."john-pc-ubuntu" = { pkgs, config, ... }: {
|
flake.modules.homeManager."${hostname}" = { pkgs, config, ... }: {
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
|
rebuild
|
||||||
john
|
john
|
||||||
desktop
|
desktop
|
||||||
docker
|
docker
|
||||||
@@ -21,51 +25,47 @@
|
|||||||
# - sops secret for `restic_password/john_ubuntu`
|
# - sops secret for `restic_password/john_ubuntu`
|
||||||
# - resticprofile profile definition
|
# - resticprofile profile definition
|
||||||
# - zsh RESTIC* session variables
|
# - zsh RESTIC* session variables
|
||||||
};
|
|
||||||
|
|
||||||
flake.homeConfigurations."john-pc-ubuntu" = inputs.home-manager.lib.homeManagerConfiguration {
|
# TODO: make this more restrictive, rather than allowing all unfree packages
|
||||||
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
nixpkgs.config.allowUnfree = true;
|
||||||
modules = [
|
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
inputs.self.modules.homeManager."john-pc-ubuntu"
|
|
||||||
|
|
||||||
# Include another inline module to set the options created through the jsl-home modules
|
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
|
||||||
({ config, ... }: {
|
docker.enable = true;
|
||||||
|
ssh.matchSets = {
|
||||||
# TODO: make this more restrictive, rather than allowing all unfree packages
|
certs = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
appdaemon = true;
|
||||||
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
homelab = true;
|
||||||
|
dev = true;
|
||||||
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic";
|
};
|
||||||
docker.enable = true;
|
shell.program = "zsh";
|
||||||
ssh.matchSets = {
|
sops.secrets."restic_password/john_ubuntu" = {
|
||||||
certs = true;
|
path = "${config.xdg.configHome}/resticprofile/password.txt";
|
||||||
appdaemon = true;
|
};
|
||||||
homelab = true;
|
programs.resticprofile = {
|
||||||
dev = true;
|
enable= true;
|
||||||
};
|
profiles = {
|
||||||
shell.program = "zsh";
|
default = {
|
||||||
sops.secrets."restic_password/john_ubuntu" = {
|
"inherit" = "base";
|
||||||
path = "${config.xdg.configHome}/resticprofile/password.txt";
|
repository = "rest:https://soteria.john-stream.com/john-ubuntu";
|
||||||
};
|
cacert = "${config.home.homeDirectory}/.step/certs/root_ca.crt";
|
||||||
programs.resticprofile = {
|
tls-client-cert = "${config.home.homeDirectory}/.step/certs/mtls.pem";
|
||||||
enable= true;
|
backup = {
|
||||||
profiles = {
|
source = [
|
||||||
default = {
|
"${config.xdg.userDirs.documents}"
|
||||||
"inherit" = "base";
|
"/conf"
|
||||||
repository = "rest:https://soteria.john-stream.com/john-ubuntu";
|
];
|
||||||
cacert = "${config.home.homeDirectory}/.step/certs/root_ca.crt";
|
schedule = "*-*-* *:15,30,45:00";
|
||||||
tls-client-cert = "${config.home.homeDirectory}/.step/certs/mtls.pem";
|
|
||||||
backup = {
|
|
||||||
source = [
|
|
||||||
"${config.xdg.userDirs.documents}"
|
|
||||||
"/conf"
|
|
||||||
];
|
|
||||||
schedule = "*-*-* *:15,30,45:00";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.homeConfigurations."${hostname}" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
||||||
|
modules = with inputs.self.modules; [
|
||||||
|
homeManager."${hostname}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
# Import the corresponding homeManager module for the given username
|
# Import the corresponding homeManager module for the given username
|
||||||
home-manager.users."${username}" = {
|
home-manager.users."${username}" = {
|
||||||
imports = [
|
imports = [
|
||||||
|
self.modules.homeManager.base
|
||||||
self.modules.homeManager."${username}"
|
self.modules.homeManager."${username}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user