Compare commits

..

2 commits

Author SHA1 Message Date
GaspardCulis
b8345d5e06 feat(OVHCloud): Added normal user config 2024-09-26 10:17:09 +02:00
GaspardCulis
7f5dcd9190 docs: Fix ssh user instruction 2024-09-24 10:20:26 +02:00
3 changed files with 39 additions and 1 deletions

View file

@ -24,7 +24,7 @@ nix run github:nix-community/nixos-anywhere -- --flake .#<configuration name> ro
## Deploy configuration
In order to deploy new configuration changes after the initial NixOS installation, I use [deploy-rs](https://github.com/serokell/deploy-rs). It requires a properly set-up **ssh-agent** and SSH keys being installed on the **gaspard** user.
In order to deploy new configuration changes after the initial NixOS installation, I use [deploy-rs](https://github.com/serokell/deploy-rs). It requires a properly set-up **ssh-agent** and SSH keys being installed on the **root** user.
Then you can deploy the new configuration:

View file

@ -59,6 +59,7 @@
modules = [
./hosts/OVHCloud
disko.nixosModules.disko
home-manager.nixosModules.home-manager
];
};
};

View file

@ -1,4 +1,6 @@
{
inputs,
config,
pkgs,
lib,
...
@ -31,4 +33,39 @@
helix
git
];
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
];
group = "gaspard";
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
# FIX: No user config file
"gaspard" = {
home.username = "gaspard";
home.homeDirectory = "/home/gaspard";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
programs.direnv.enable = true;
imports = [
../../shell
../../editor
];
};
};
};
system.stateVersion = "24.11";
}