Merge branch 'main' of github.com:fwastring/nix

This commit is contained in:
fwastring 2025-06-05 12:48:07 +02:00
commit 336c146925
9 changed files with 117 additions and 22 deletions

View file

@ -12,32 +12,108 @@
# You can import other NixOS modules here
imports = [
./hardware-configuration.nix
../../config/base.nix
../../shared/openssh.nix
../../jobb/users.nix
../../config/users.nix
../../config/dev.nix
../../config/lsp.nix
../../config/network.nix
../../config/system.nix
];
environment.systemPackages = with pkgs; [
kubectl
azure-cli
dotnetCorePackages.sdk_8_0_3xx
k3s
cifs-utils
nfs-utils
docker-slim
];
networking.firewall = {
allowedTCPPorts = [ 5173 ];
nixpkgs = {
overlays = [
];
config = {
allowUnfree = true;
};
};
services.k3s.enable = false;
nix.registry = (lib.mapAttrs (_: flake: { inherit flake; })) (
(lib.filterAttrs (_: lib.isType "flake")) inputs
);
nix.nixPath = [ "/etc/nix/path" ];
users.defaultUserShell = pkgs.bash;
documentation.man.generateCaches = false;
programs.fish.enable = true;
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
environment.etc = lib.mapAttrs' (name: value: {
name = "nix/path/${name}";
value.source = value.flake;
}) config.nix.registry;
services.openiscsi = {
nix.settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
virtualisation.docker = {
enable = true;
name = "iqn.2016-04.com.open-iscsi:work-desktop";
liveRestore = false;
};
security.rtkit.enable = true;
services = {
tailscale = {
enable = true;
};
};
networking.networkmanager.enable = true;
environment.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
TERM = "xterm-256color";
};
time.timeZone = "Europe/Stockholm";
fonts.packages = with pkgs; [
nerd-fonts.comic-shanns-mono
nerd-fonts.fira-code
];
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";
};
boot.loader = {
efi = {
canTouchEfiVariables = false;
};
grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
};
console.keyMap = "sv-latin1";
services = {
xserver = {
enable = true;
xkb = {
layout = "se";
variant = "";
};
};
};
networking.hostName = myhostname;
services.xserver.dpi = 140;