mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-17 12:33:03 +01:00
77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{extraInfo}: {
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [extraInfo];
|
|
|
|
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages;
|
|
|
|
programs.nix-ld.enable = true;
|
|
|
|
users.users."${config.extraInfo.username}" = {
|
|
isNormalUser = true;
|
|
home = "/home/${config.extraInfo.username}";
|
|
shell = pkgs.zsh;
|
|
extraGroups = ["wheel"];
|
|
};
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
console = {
|
|
font = "Lat2-Terminus16";
|
|
keyMap = "dvorak-programmer";
|
|
};
|
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
|
fonts.enableDefaultFonts = true;
|
|
fonts = {
|
|
fonts = with pkgs; [
|
|
(nerdfonts.override {fonts = ["Hack"];})
|
|
dejavu_fonts
|
|
];
|
|
fontconfig = {
|
|
defaultFonts = {
|
|
serif = ["DejaVu"];
|
|
sansSerif = ["DejaVu Sans"];
|
|
monospace = ["Hack"];
|
|
};
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(final: super: {
|
|
nixos-rebuild = super.nixos-rebuild.overrideAttrs (old: {
|
|
path = "${old.path}:${lib.makeBinPath [final.nix-output-monitor]}";
|
|
src = lib.debug.traceVal "${final.runCommand "nixos-rebuild.sh" {} ''
|
|
mkdir -p $out
|
|
|
|
cp ${old.src} nixos-rebuild.sh
|
|
|
|
patch -p5 <${./nom-rebuild.patch}
|
|
mv nixos-rebuild.sh $out
|
|
''}/nixos-rebuild.sh";
|
|
});
|
|
})
|
|
];
|
|
|
|
nix = {
|
|
package = pkgs.nixUnstable;
|
|
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
substituters = ["https://nix-gaming.cachix.org"];
|
|
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
|
|
};
|
|
};
|
|
nix.gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
}
|