nixfiles/config/hosts/_minimal/configuration.nix

72 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-06-12 15:00:55 +02:00
{ modulesPath, inputs, pkgs, ... }: {
2024-02-26 20:20:03 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
2024-02-27 19:07:12 +01:00
inputs.home-manager.nixosModules.home-manager
2024-02-26 20:20:03 +01:00
];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2024-02-28 16:20:45 +01:00
environment.systemPackages = with pkgs; [
colmena
curl
gitMinimal
2024-02-26 20:20:03 +01:00
];
2024-02-27 19:07:12 +01:00
services.xserver.xkb = {
layout = "de";
variant = "neo_qwerty";
};
console.useXkbConfig = true;
console.earlySetup = true;
2024-02-28 16:20:45 +01:00
networking.networkmanager.enable = true;
2024-02-27 19:07:12 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "@wheel" ];
security.sudo.wheelNeedsPassword = false;
2024-02-28 16:20:45 +01:00
services.openssh.enable = true;
2024-02-26 20:20:03 +01:00
2024-02-27 19:07:12 +01:00
users.users.emily = {
isNormalUser = true;
shell = pkgs.fish;
ignoreShellProgramCheck = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
];
};
home-manager.useGlobalPkgs = true;
home-manager.users.emily = {
home.stateVersion = "23.11";
fonts.fontconfig.enable = true;
programs.gpg.enable = true;
programs.ripgrep.enable = true;
programs.eza = {
enable = true;
2024-10-17 16:55:25 +02:00
icons = "auto";
2024-02-27 19:07:12 +01:00
git = true;
extraOptions = [
"--color-scale=all"
"--color-scale-mode=gradient"
"--group-directories-first"
];
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set -U fish_greeting
'';
};
};
2024-02-26 20:20:03 +01:00
system.stateVersion = "23.11";
}