2023-04-18 07:54:29 +01:00
|
|
|
{ pkgs, ... }:
|
2023-03-29 07:37:34 +01:00
|
|
|
{
|
2023-05-05 08:39:02 +01:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2023-03-29 07:37:34 +01:00
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2023-04-25 14:43:08 +01:00
|
|
|
# Home manager integration with NixOS
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
2023-05-09 17:45:04 +01:00
|
|
|
home-manager.users.root = { ... }: {
|
|
|
|
imports = [
|
|
|
|
./home/env/bash.nix
|
2023-05-09 17:54:54 +01:00
|
|
|
./home/env/fish.nix
|
2023-05-09 17:45:04 +01:00
|
|
|
./home/env/bat.nix
|
|
|
|
./home/env/starship.nix
|
2023-05-09 17:47:54 +01:00
|
|
|
./home/tui/neovim.nix
|
2023-05-09 17:57:57 +01:00
|
|
|
./home/tui/lazygit.nix
|
2023-05-09 17:45:04 +01:00
|
|
|
./home/git/personal.nix
|
|
|
|
];
|
|
|
|
# Home Manager needs a bit of information about you and the
|
|
|
|
# paths it should manage.
|
|
|
|
home.username = "root";
|
|
|
|
home.homeDirectory = "/root";
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
};
|
2023-04-25 14:43:08 +01:00
|
|
|
|
2023-03-29 07:37:34 +01:00
|
|
|
# Enable networking
|
2023-04-30 10:37:19 +01:00
|
|
|
networking = {
|
|
|
|
networkmanager.enable = true;
|
|
|
|
#wireless = {
|
|
|
|
# enable = true;
|
|
|
|
# userControlled.enable = true;
|
|
|
|
#};
|
|
|
|
};
|
2023-04-05 11:17:19 +01:00
|
|
|
|
|
|
|
# Enable power-profiles
|
|
|
|
services.power-profiles-daemon.enable = true;
|
2023-03-29 07:37:34 +01:00
|
|
|
|
2023-04-18 08:44:35 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-04-19 09:28:13 +01:00
|
|
|
gnumake
|
2023-04-18 08:44:35 +01:00
|
|
|
home-manager
|
|
|
|
clinfo
|
|
|
|
glxinfo
|
|
|
|
];
|
2023-04-18 07:54:29 +01:00
|
|
|
|
2023-04-29 12:36:57 +01:00
|
|
|
fonts.fontconfig.enable = true;
|
2023-03-29 08:18:17 +01:00
|
|
|
programs.ssh.startAgent = true;
|
2023-03-29 15:38:01 +01:00
|
|
|
programs.fish.enable = true;
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestions = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-03-29 07:37:34 +01:00
|
|
|
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
}
|