Started work on server configuration
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -93,6 +93,19 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xenon = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = {
|
||||||
|
host = "xenon";
|
||||||
|
inherit self inputs scheme wallpaper username;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./hosts/server
|
||||||
|
stylix.nixosModules.stylix
|
||||||
|
nixvim.nixosModules.nixvim
|
||||||
|
nur.nixosModules.nur
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
installer = nixpkgs.lib.nixosSystem {
|
installer = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "installer";
|
host = "installer";
|
||||||
|
|||||||
31
hosts/server/settings.nix
Normal file
31
hosts/server/settings.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{pkgs, username, ...}: {
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
substituters = ["https://nix-gaming.cachix.org"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
variables = {
|
||||||
|
PATH = "${pkgs.clang-tools}/bin:$PATH";
|
||||||
|
};
|
||||||
|
shells = with pkgs; [
|
||||||
|
zsh
|
||||||
|
bash
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users."${username}" = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroup = [ "wheel" ];
|
||||||
|
initialPassword = "1111";
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
}
|
||||||
3
modules/server/default.nix
Normal file
3
modules/server/default.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{config,inputs,scheme,wallpaper,username,...}:
|
||||||
|
|
||||||
|
{}
|
||||||
15
modules/server/services.nix
Normal file
15
modules/server/services.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, pkgs, username, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
systemd.user.tmpfiles.users."${username}".rules = [
|
||||||
|
"d /home/${username}/media 0770 ${username} users -"
|
||||||
|
"d /home/${username}/backup 0770 ${username} users -"
|
||||||
|
"d /home/${username}/cloud 0770 ${username} users -"
|
||||||
|
"d /home/${username}/repositories 0770 ${username} users -"
|
||||||
|
"d /home/${username}/game_servers 0770 ${username} users -"
|
||||||
|
"d /home/${username}/inbox 0770 ${username} users -"
|
||||||
|
"d /home/${username}/outbox 0770 ${username} users -"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user