Modularize with numtide/blueprint
This commit is contained in:
parent
d0b1495ede
commit
5335a08eb5
17 changed files with 135 additions and 170 deletions
16
modules/nixos/base.nix
Normal file
16
modules/nixos/base.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
channel.enable = false;
|
||||
};
|
||||
|
||||
}
|
||||
18
modules/nixos/jhemono.nix
Normal file
18
modules/nixos/jhemono.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ inputs, config, lib, ... }:
|
||||
let
|
||||
username = "jhemono";
|
||||
in
|
||||
{
|
||||
|
||||
users.users.${username} = {
|
||||
description = "Julien Hémono";
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
# openssh.authorizedKeys.keys = info.authorizedKeys;
|
||||
initialPassword = "cheval";
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ username ];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue