init
This commit is contained in:
37
configuration.nix
Normal file
37
configuration.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
modulesPath,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
services.openssh.enable = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
users.users.mtgmonkey = {
|
||||
isNormalUser = true;
|
||||
home = "/home/mtgmonkey";
|
||||
description = "mtgmonkey";
|
||||
extraGroups = ["wheel" "networkmanager"];
|
||||
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo"];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
parted
|
||||
];
|
||||
|
||||
environment.etc."setupsh".source = ./setup.sh;
|
||||
environment.etc."setupsh".mode = "0755";
|
||||
environment.etc."conf.nix".source = ./conf.nix;
|
||||
|
||||
systemd.services.myScriptService = {
|
||||
description = "Installation Service";
|
||||
after = ["network.target"]; # Specify dependencies, if any
|
||||
wantedBy = ["multi-user.target"]; # Define the target that should include this service
|
||||
serviceConfig = {
|
||||
ExecStart = "${config.environment.etc.setupsh.source}";
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user