Files
nixos-config/configuration.nix

103 lines
2.2 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
2023-04-15 00:28:20 +02:00
fonts.fonts = with pkgs; [
noto-fonts-cjk-sans
];
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 = {
2023-04-09 23:13:55 +02:00
enable = true;
settings = {
theme = "dark_plus";
editor = {
line-number = "relative";
cursorline = true;
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
};
};
2023-04-09 23:13:55 +02:00
};
2023-04-12 02:38:58 +02:00
vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
astro-build.astro-vscode
bbenoist.nix
ritwickdey.liveserver
2023-04-15 00:28:20 +02:00
svelte.svelte-vscode
2023-04-12 02:38:58 +02:00
];
};
alacritty.enable = true;
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
}