124 lines
2.9 KiB
Nix
124 lines
2.9 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.ip_unprivileged_port_start" = 0;
|
|
};
|
|
system.stateVersion = "24.05";
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
persistent = true;
|
|
flake = "/home/alisceon/.nixos_config";
|
|
flags = [
|
|
"--update-input"
|
|
"nixpkgs"
|
|
"-L"
|
|
];
|
|
dates = "daily";
|
|
}; # end system.autoUpgrade
|
|
|
|
nix = {
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
auto-optimise-store = true;
|
|
trusted-users = [ "root" "alisceon" ];
|
|
}; # end settings
|
|
gc = {
|
|
automatic = true;
|
|
persistent = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 7d";
|
|
}; # end gc
|
|
registry = {
|
|
templates.to = {
|
|
type = "git";
|
|
url = "git+ssh://git@git.malice.zone/alisceon/devenv_templates.git";
|
|
}; # end templates.to
|
|
nixpkgs.to = {
|
|
type = "github";
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-unstable";
|
|
}; # end nixpkgs.to
|
|
nixpkgs-stable.to = {
|
|
type = "github";
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-25.05";
|
|
}; # end nixpkgs.to
|
|
}; #end registry
|
|
}; #end nix
|
|
|
|
console.keyMap = "sv-latin1";
|
|
networking.networkmanager.enable = true;
|
|
time.timeZone = "Europe/Stockholm";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "sv_SE.UTF-8";
|
|
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
|
LC_MEASUREMENT = "sv_SE.UTF-8";
|
|
LC_MONETARY = "sv_SE.UTF-8";
|
|
LC_NAME = "sv_SE.UTF-8";
|
|
LC_NUMERIC = "sv_SE.UTF-8";
|
|
LC_PAPER = "sv_SE.UTF-8";
|
|
LC_TELEPHONE = "sv_SE.UTF-8";
|
|
LC_TIME = "sv_SE.UTF-8";
|
|
};
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
# CLI tools
|
|
git
|
|
wget
|
|
curl
|
|
btop # system monitor
|
|
ripgrep # grep replacement
|
|
bat # cat replacement
|
|
fd # find replacement
|
|
eza # ls replacement
|
|
nh # nix helper
|
|
jq # JSON processor
|
|
ncdu
|
|
pciutils
|
|
usbutils
|
|
tree
|
|
|
|
# Shells
|
|
bash
|
|
nushell
|
|
fish
|
|
powershell
|
|
|
|
# Languages
|
|
python3
|
|
|
|
# Virtualization
|
|
podman
|
|
]; # end systemPackages
|
|
|
|
shells = with pkgs; [
|
|
bash
|
|
nushell
|
|
fish
|
|
powershell
|
|
];
|
|
}; # end environment
|
|
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
}; # end virtualisation
|
|
|
|
users.users.alisceon = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networkmanager" "podman" ];
|
|
shell = pkgs.nushell;
|
|
openssh.authorizedKeys.keys = [
|
|
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPN1Cd2UlHo03Jqgi5Yb4io/3gh/X4wCb8LcmKlpAovQa271CKDBtYOUKn+Fts03g6dBMfaWMty6VGPMGDMONmc= alisceon@electra"
|
|
];
|
|
}; # end users
|
|
|
|
programs.command-not-found.enable = true;
|
|
} #end file
|