2023-06-09 10:15:24 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
|
|
in {
|
|
|
|
imports = [(import "${home-manager}/nixos")];
|
2023-06-03 07:46:37 +01:00
|
|
|
nix = {
|
|
|
|
settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
|
|
|
};
|
2023-06-06 08:00:37 +01:00
|
|
|
system.autoUpgrade.enable = lib.mkDefault false;
|
2023-03-29 07:37:34 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-06-03 07:46:37 +01:00
|
|
|
home-manager = {
|
|
|
|
useUserPackages = false;
|
|
|
|
useGlobalPkgs = true;
|
2023-06-09 10:15:24 +01:00
|
|
|
users.root = {
|
2023-06-16 14:05:17 +01:00
|
|
|
imports = [./home/env/bash.nix ./home/env/starship.nix];
|
2023-06-09 10:15:24 +01:00
|
|
|
home.username = "root";
|
|
|
|
home.homeDirectory = "/root";
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
};
|
2023-06-03 07:46:37 +01:00
|
|
|
};
|
2023-05-09 18:31:55 +01:00
|
|
|
networking.networkmanager.enable = true;
|
2023-06-04 16:58:15 +01:00
|
|
|
services.power-profiles-daemon.enable = true;
|
2023-06-03 07:46:37 +01:00
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
programs = {
|
|
|
|
ssh.startAgent = true;
|
|
|
|
fish.enable = true;
|
|
|
|
zsh.enable = true;
|
2023-03-29 07:37:34 +01:00
|
|
|
};
|
2023-06-14 09:57:15 +01:00
|
|
|
fonts.fontconfig.enable = true;
|
2023-06-14 15:47:28 +01:00
|
|
|
environment.localBinInPath = true;
|
2023-03-29 07:37:34 +01:00
|
|
|
}
|