mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
desktop deploy
This commit is contained in:
parent
366a0e221a
commit
db3dda1f0b
5 changed files with 14 additions and 13 deletions
9
justfile
9
justfile
|
|
@ -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 .
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
3
parts/modules/hardware/yubikey.nix
Normal file
3
parts/modules/hardware/yubikey.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
_: {
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue