nixfiles/config/hosts/base/configuration.nix

77 lines
1.8 KiB
Nix
Raw Normal View History

2024-02-27 19:07:12 +01:00
{ modulesPath, config, lib, 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;
};
services.openssh.enable = true;
2024-02-27 16:47:43 +01:00
environment.systemPackages = [
2024-02-26 20:20:03 +01:00
pkgs.curl
pkgs.gitMinimal
];
2024-02-27 19:07:12 +01:00
services.xserver.xkb = {
layout = "de";
variant = "neo_qwerty";
};
console.useXkbConfig = true;
console.earlySetup = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "root" "@wheel" ];
security.sudo.wheelNeedsPassword = false;
2024-02-26 20:20:03 +01:00
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
];
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;
enableAliases = true;
icons = true;
git = true;
extraOptions = [
"--color-scale=all"
"--color-scale-mode=gradient"
"--group-directories-first"
];
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set -U fish_greeting
'';
loginShellInit = ''
[ (tty) = /dev/tty1 ] ;and exec Hyprland
'';
};
};
2024-02-26 20:20:03 +01:00
system.stateVersion = "23.11";
}