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()
|
||||
|
||||
[group("deploy")]
|
||||
deploy hostname *ARGS:
|
||||
nix run nixpkgs#nixos-rebuild -- \
|
||||
--flake .#{{ hostname }} \
|
||||
{{ ARGS }} switch
|
||||
|
||||
|
||||
[group('deploy')]
|
||||
deploy hostname target:
|
||||
deploy-remote hostname target:
|
||||
#!/usr/bin/env -S bash -e
|
||||
git add .
|
||||
|
||||
|
|
|
|||
|
|
@ -9,16 +9,6 @@ with lib; let
|
|||
inherit (config.age) secrets;
|
||||
in {
|
||||
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 {
|
||||
type = options.home-manager.users.type.functor.wrapped;
|
||||
};
|
||||
|
|
@ -29,8 +19,8 @@ in {
|
|||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
# initialPassword = "password";
|
||||
hashedPasswordFile = secrets.hashed-user-password.path;
|
||||
initialPassword = "password";
|
||||
#hashedPasswordFile = secrets.hashed-user-password.path;
|
||||
};
|
||||
|
||||
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
|
||||
./dev/just.nix
|
||||
./hardware/usb.nix
|
||||
./hardware/yubikey.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue