diff options
| author | schererleander <leander@schererleander.de> | 2026-02-05 12:03:07 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-02-05 15:19:41 +0100 |
| commit | 3b13d9a2a367db84d48940460532c17a374bb488 (patch) | |
| tree | 599110a39c4baecf3991fe9a58d0103a43c38896 /modules/hosts/sachiel/configuration.nix | |
| parent | 46aa4842b98d9215baca00060c233f386a0c2188 (diff) | |
feat(modules): use dendritic pattern
Diffstat (limited to 'modules/hosts/sachiel/configuration.nix')
| -rw-r--r-- | modules/hosts/sachiel/configuration.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/hosts/sachiel/configuration.nix b/modules/hosts/sachiel/configuration.nix new file mode 100644 index 0000000..d2d1d75 --- /dev/null +++ b/modules/hosts/sachiel/configuration.nix @@ -0,0 +1,49 @@ +{ + flake.modules.nixos.sachiel = + { + pkgs, + ... + }: + { + boot.tmp.cleanOnBoot = true; + boot.loader.grub.configurationLimit = 2; + zramSwap.enable = true; + + swapDevices = [ + { + device = "/var/swapfile"; + size = 4096; + } + ]; + + networking = { + hostName = "sachiel"; + domain = "schererleander.de"; + }; + + users.users.root.hashedPassword = "!"; + users.mutableUsers = false; + users.users.administrator = { + isNormalUser = true; + hashedPassword = "$6$KBblJguEyfEmuWnU$Xf0QqPVacA2qvnzZRpnSE2cmh0kNnMgtVhCrMEDI76buNzuzkuDY6EnO7jPjQlEnoczx6ZPAl2pK.SxezbVa.."; + extraGroups = [ "wheel" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvlkqlvY4+0o7UIGnFnnRw0HeBq5v7wYJ3kY3teXxxl vps" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINL+r0l2i07pl9V9iiGqw5e2f/QAcrMhuraA25HavdNT github-deploy" + ]; + }; + + environment.systemPackages = with pkgs; [ + git + gnutar + gzip + zoxide + neovim + htop + ]; + + nixpkgs.config.allowUnfree = true; + nixpkgs.hostPlatform = "x86_64-linux"; + system.stateVersion = "25.05"; + }; +} |
