Evie Litherland-Smith
8c7f8dba52
Move collections to use default.nix in relevant directories Combine GUI elements into gui directory
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Home manager integration with NixOS
|
|
home-manager.useUserPackages = true;
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.users.root = { ... }: {
|
|
imports = [ ./home/env ./home/tui ./home/git/personal.nix ./home/ssh/personal.nix ];
|
|
home.username = "root";
|
|
home.homeDirectory = "/root";
|
|
home.stateVersion = "22.11";
|
|
};
|
|
|
|
# Enable networking
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Enable power-profiles
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [ home-manager ];
|
|
|
|
programs.nix-ld = {
|
|
enable = true;
|
|
libraries = with pkgs; [
|
|
stdenv.cc.cc
|
|
zlib
|
|
fuse3
|
|
icu
|
|
openssl
|
|
curl
|
|
expat
|
|
];
|
|
};
|
|
|
|
fonts.fontconfig.enable = true;
|
|
programs.ssh.startAgent = true;
|
|
programs.fish.enable = true;
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestions = {
|
|
enable = true;
|
|
};
|
|
syntaxHighlighting = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
}
|