2023-03-31 18:15:58 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-01-31 11:58:43 -05:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
2023-03-26 06:12:19 -04:00
|
|
|
../../modules
|
2023-01-31 11:58:43 -05:00
|
|
|
];
|
|
|
|
|
2023-02-17 01:15:46 -05:00
|
|
|
boot.loader = {
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
configurationLimit = 5;
|
|
|
|
device = "/dev/sda";
|
|
|
|
useOSProber = false;
|
|
|
|
};
|
|
|
|
};
|
2023-01-31 11:58:43 -05:00
|
|
|
|
|
|
|
networking.hostName = "hime";
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-03-01 03:47:59 -05:00
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = true;
|
2023-01-31 11:58:43 -05:00
|
|
|
};
|
2023-03-01 02:08:41 -05:00
|
|
|
};
|
2023-01-31 11:58:43 -05:00
|
|
|
|
2023-02-12 13:42:57 -05:00
|
|
|
services.fstrim = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2023-01-31 11:58:43 -05:00
|
|
|
virtualisation.docker.enable = true;
|
2023-02-27 05:50:52 -05:00
|
|
|
users ={
|
|
|
|
defaultUserShell = pkgs.nushell;
|
|
|
|
users.oh = {
|
2023-01-31 11:58:43 -05:00
|
|
|
isNormalUser = true;
|
|
|
|
description = "oh";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
packages = with pkgs; [
|
|
|
|
hugo
|
2023-02-25 04:33:17 -05:00
|
|
|
yt-dlp
|
2023-01-31 11:58:43 -05:00
|
|
|
];
|
|
|
|
};
|
2023-02-27 05:51:37 -05:00
|
|
|
};
|
2023-01-31 11:58:43 -05:00
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
docker-compose
|
|
|
|
wget
|
|
|
|
python3Full
|
2023-02-16 23:10:34 -05:00
|
|
|
nfs-utils
|
2023-01-31 11:58:43 -05:00
|
|
|
];
|
|
|
|
|
2023-02-05 08:58:08 -05:00
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
warn-dirty = false
|
2023-02-05 09:00:31 -05:00
|
|
|
'';
|
2023-03-01 01:57:26 -05:00
|
|
|
settings.auto-optimise-store = true;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
2023-02-05 09:00:31 -05:00
|
|
|
};
|
2023-02-05 08:58:08 -05:00
|
|
|
|
2023-01-31 13:19:50 -05:00
|
|
|
system.stateVersion = "23.05";
|
2023-01-31 11:58:43 -05:00
|
|
|
}
|