minimal bootstrap install
This commit is contained in:
parent
8679f14566
commit
1c0725912d
|
@ -14,7 +14,6 @@ in
|
|||
# Import core options
|
||||
./hardware-configuration.nix
|
||||
../common/core
|
||||
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
|
|
|
@ -3,6 +3,7 @@ let
|
|||
secretsDirectory = builtins.toString inputs.nix-secrets;
|
||||
secretsFile = "${secretsDirectory}/secrets.yaml";
|
||||
hostname = config.networking.hostName;
|
||||
username = config.username;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -16,10 +17,10 @@ in
|
|||
age = {
|
||||
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
};
|
||||
secrets = {
|
||||
secrets = builtins.merge ({
|
||||
"passwords/root".neededForUsers = true;
|
||||
"passwords/sam".neededForUsers = true;
|
||||
"passwords/media".neededForUsers = true;
|
||||
})
|
||||
if username != null then { "passwords/${username}".neededForUsers = true; } else {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,6 +11,9 @@ in
|
|||
../common/optional/btrfs-impermanence.nix
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
|
||||
# Create users for this host
|
||||
../common/users/media
|
||||
|
||||
# Import core options
|
||||
./hardware-configuration.nix
|
||||
../common/core
|
||||
|
@ -18,9 +21,6 @@ in
|
|||
# Import optional options
|
||||
../common/optional/openssh.nix
|
||||
|
||||
# Create users for this host
|
||||
../common/users/media
|
||||
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
|
@ -48,7 +48,7 @@ in
|
|||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
];
|
||||
users.media = {
|
||||
users.${config.username} = {
|
||||
directories = [
|
||||
"sync"
|
||||
"keep"
|
||||
|
@ -88,8 +88,8 @@ in
|
|||
services = {
|
||||
qemuGuest.enable = true;
|
||||
};
|
||||
services.libinput.enable = true;
|
||||
services.displayManager.defaultSession = "cinnamon";
|
||||
#services.libinput.enable = true;
|
||||
#services.displayManager.defaultSession = "cinnamon";
|
||||
|
||||
# services.xserver = {
|
||||
# enable = true;
|
||||
|
|
Loading…
Reference in New Issue