Compare commits
2 commits
3e3d45f18b
...
b8345d5e06
Author | SHA1 | Date | |
---|---|---|---|
|
b8345d5e06 | ||
|
7f5dcd9190 |
3 changed files with 39 additions and 1 deletions
|
@ -24,7 +24,7 @@ nix run github:nix-community/nixos-anywhere -- --flake .#<configuration name> ro
|
||||||
|
|
||||||
## Deploy configuration
|
## 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:
|
Then you can deploy the new configuration:
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/OVHCloud
|
./hosts/OVHCloud
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
|
@ -31,4 +33,39 @@
|
||||||
helix
|
helix
|
||||||
git
|
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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue