desktop deploy

This commit is contained in:
Nickolaj Jepsen 2025-02-19 20:08:25 +00:00
parent 366a0e221a
commit db3dda1f0b
5 changed files with 14 additions and 13 deletions

View file

@ -62,8 +62,15 @@ deploy-factor hostname target='':
tmp_dir := "/tmp/secrets/" + uuid() tmp_dir := "/tmp/secrets/" + uuid()
[group("deploy")]
deploy hostname *ARGS:
nix run nixpkgs#nixos-rebuild -- \
--flake .#{{ hostname }} \
{{ ARGS }} switch
[group('deploy')] [group('deploy')]
deploy hostname target: deploy-remote hostname target:
#!/usr/bin/env -S bash -e #!/usr/bin/env -S bash -e
git add . git add .

View file

@ -9,16 +9,6 @@ with lib; let
inherit (config.age) secrets; inherit (config.age) secrets;
in { in {
options.fireproof = { options.fireproof = {
username = lib.mkOption {
type = lib.types.str;
default = "nickolaj";
description = "The username of the user";
};
group = lib.mkOption {
type = lib.types.str;
default = "users";
};
home-manager = lib.mkOption { home-manager = lib.mkOption {
type = options.home-manager.users.type.functor.wrapped; type = options.home-manager.users.type.functor.wrapped;
}; };
@ -29,8 +19,8 @@ in {
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel"]; extraGroups = ["wheel"];
# initialPassword = "password"; initialPassword = "password";
hashedPasswordFile = secrets.hashed-user-password.path; #hashedPasswordFile = secrets.hashed-user-password.path;
}; };
home-manager = { home-manager = {

View file

@ -0,0 +1,3 @@
_: {
services.pcscd.enable = true;
}

View file

@ -9,5 +9,6 @@
./base/default-apps.nix ./base/default-apps.nix
./dev/just.nix ./dev/just.nix
./hardware/usb.nix ./hardware/usb.nix
./hardware/yubikey.nix
]; ];
} }