Files
nixos-config/configuration.nix

76 lines
1.6 KiB
Nix
Raw Normal View History

2023-03-27 12:44:37 +02:00
{ config, pkgs, ... }:
{
imports =
2023-04-08 01:04:52 +02:00
[
2023-03-27 12:44:37 +02:00
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2023-04-08 01:04:52 +02:00
networking.hostName = "itachi";
2023-03-27 12:44:37 +02:00
time.timeZone = "Europe/Amsterdam";
2023-04-08 01:04:52 +02:00
services = {
xserver = {
2023-03-27 12:44:37 +02:00
enable = true;
2023-04-08 01:04:52 +02:00
videoDrivers = [ "nvidia" ];
windowManager.i3 = {
enable = true;
extraSessionCommands = "xrandr --output DP-0 --left-of DP-4 --mode 1920x1080 --rate 144 --output DP-4 --mode 1920x1080 --rate 144";
};
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
2023-03-27 12:44:37 +02:00
};
};
sound.enable = true;
security.rtkit.enable = true;
2023-03-27 12:44:37 +02:00
2023-04-08 01:04:52 +02:00
environment.variables = {
TERMINAL = "alacritty";
};
2023-03-27 12:44:37 +02:00
users.users.thiloho = {
isNormalUser = true;
2023-04-08 01:04:52 +02:00
extraGroups = [ "wheel" ];
2023-03-27 12:44:37 +02:00
};
# Home manager configuration
home-manager.users.thiloho = { pkgs, ... }: {
programs = {
helix.enable = true;
alacritty.enable = true;
2023-04-05 21:16:31 +02:00
firefox.enable = true;
2023-03-27 12:44:37 +02:00
git = {
enable = true;
userName = "thiloho";
userEmail = "123883702+thiloho@users.noreply.github.com";
signing = {
2023-04-08 01:04:52 +02:00
key = "/home/thiloho/.ssh/id_ed25519.pub";
signByDefault = true;
};
extraConfig.gpg.format = "ssh";
2023-03-27 12:44:37 +02:00
};
};
services.flameshot.enable = true;
home = {
stateVersion = "22.11";
};
2023-03-27 12:44:37 +02:00
};
2023-04-08 01:04:52 +02:00
system.stateVersion = "22.11";
2023-03-27 12:44:37 +02:00
}