ft (wip): big initial config

This commit is contained in:
djaidjai committed 2026-09-26 01:45:42 +02:00
1 parent 4aead77c60
commit 7a07c37bc3
19 files changed
+1173

No files matched your search

+72
View File
@@ -0,0 +1,72 @@
{
config,
pkgs,
inputs,
...
}:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# garbage collection
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.optimise.automatic = true;
nixpkgs.config.allowUnfree = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
users.defaultUserShell = pkgs.fish;
users.users.djai = {
isNormalUser = true;
description = "djai";
extraGroups = [
"docker"
"networkmanager"
"video"
"wheel"
];
};
# TODO: figure out what we want to do w firewall
# networking.firewall.enable = false;
networking.networkmanager.enable = true;
programs.nix-ld.enable = true;
services.upower.enable = true;
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
git
wget
vim
];
# TODO: use home-manager
# home-manager = {
# useGlobalPkgs = true;
# useUserPackages = true;
# extraSpecialArgs = { inherit inputs; };
# # Move a file home-manager would overwrite aside instead of failing.
# backupFileExtension = "backup";
#
# users.djai = {
# home.stateVersion = "26.05";
# programs.home-manager.enable = true;
#
# # TODO: unified ssh-config secret
# home.file.".ssh/config".text = ''
# Include ${config.sops.secrets."ssh-config".path}
# '';
# };
# };
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.