mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: change flake base path for winters
This commit is contained in:
parent
9e6fd597b2
commit
b019b1562f
5 changed files with 18 additions and 6 deletions
|
|
@ -2040,6 +2040,8 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
hasFingerprint = false;
|
hasFingerprint = false;
|
||||||
impermanence = false;
|
impermanence = false;
|
||||||
isBtrfs = false;
|
isBtrfs = false;
|
||||||
|
initialSetup = true;
|
||||||
|
flakePath = "/home/swarsel/.dotfiles";
|
||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
kavita = true;
|
kavita = true;
|
||||||
|
|
@ -4657,6 +4659,10 @@ I usually use =mutableUsers = false= in my NixOS configuration. However, on a ne
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
options.swarselsystems.flakePath = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = "";
|
||||||
|
};
|
||||||
options.swarselsystems.initialSetup = lib.mkEnableOption "initial setup (no sops keys available)";
|
options.swarselsystems.initialSetup = lib.mkEnableOption "initial setup (no sops keys available)";
|
||||||
options.swarselsystems.server.enable = lib.mkEnableOption "is a server machine";
|
options.swarselsystems.server.enable = lib.mkEnableOption "is a server machine";
|
||||||
options.swarselsystems.server.kavita = lib.mkEnableOption "enable kavita on server";
|
options.swarselsystems.server.kavita = lib.mkEnableOption "enable kavita on server";
|
||||||
|
|
@ -6531,8 +6537,8 @@ Also, the system state version is set here. No need to touch it.
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.shellAliases = lib.recursiveUpdate {
|
environment.shellAliases = lib.recursiveUpdate {
|
||||||
npswitch = "cd /.dotfiles; git pull; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
npswitch = "cd ${config.swarselsystems.flakePath}; git pull; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
||||||
nswitch = "cd /.dotfiles; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
nswitch = "cd ${config.swarselsystems.flakePath}; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
||||||
}
|
}
|
||||||
config.swarselsystems.shellAliases;
|
config.swarselsystems.shellAliases;
|
||||||
|
|
||||||
|
|
@ -6566,7 +6572,7 @@ Also, the system state version is set here. No need to touch it.
|
||||||
{
|
{
|
||||||
sops = {
|
sops = {
|
||||||
age.sshKeyPaths = [ "/etc/ssh/sops" ];
|
age.sshKeyPaths = [ "/etc/ssh/sops" ];
|
||||||
defaultSopsFile = "/.dotfiles/secrets/server/winters/secrets.yaml";
|
defaultSopsFile = "${config.swarselsystems.flakePath}/secrets/server/winters/secrets.yaml";
|
||||||
validateSopsFiles = false;
|
validateSopsFiles = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
options.swarselsystems.flakePath = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = "";
|
||||||
|
};
|
||||||
options.swarselsystems.initialSetup = lib.mkEnableOption "initial setup (no sops keys available)";
|
options.swarselsystems.initialSetup = lib.mkEnableOption "initial setup (no sops keys available)";
|
||||||
options.swarselsystems.server.enable = lib.mkEnableOption "is a server machine";
|
options.swarselsystems.server.enable = lib.mkEnableOption "is a server machine";
|
||||||
options.swarselsystems.server.kavita = lib.mkEnableOption "enable kavita on server";
|
options.swarselsystems.server.kavita = lib.mkEnableOption "enable kavita on server";
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
|
|
||||||
environment.shellAliases = lib.recursiveUpdate
|
environment.shellAliases = lib.recursiveUpdate
|
||||||
{
|
{
|
||||||
npswitch = "cd /.dotfiles; git pull; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
npswitch = "cd ${config.swarselsystems.flakePath}; git pull; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
||||||
nswitch = "cd /.dotfiles; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
nswitch = "cd ${config.swarselsystems.flakePath}; nixos-rebuild --flake .#$(hostname) switch; cd -;";
|
||||||
}
|
}
|
||||||
config.swarselsystems.shellAliases;
|
config.swarselsystems.shellAliases;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
sops = {
|
sops = {
|
||||||
age.sshKeyPaths = [ "/etc/ssh/sops" ];
|
age.sshKeyPaths = [ "/etc/ssh/sops" ];
|
||||||
defaultSopsFile = "/.dotfiles/secrets/server/winters/secrets.yaml";
|
defaultSopsFile = "${config.swarselsystems.flakePath}/secrets/server/winters/secrets.yaml";
|
||||||
validateSopsFiles = false;
|
validateSopsFiles = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
hasFingerprint = false;
|
hasFingerprint = false;
|
||||||
impermanence = false;
|
impermanence = false;
|
||||||
isBtrfs = false;
|
isBtrfs = false;
|
||||||
|
initialSetup = true;
|
||||||
|
flakePath = "/home/swarsel/.dotfiles";
|
||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
kavita = true;
|
kavita = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue