nixos/hosts/snowhawk/configuration.nix

141 lines
3.1 KiB
Nix
Raw Normal View History

2024-02-26 07:33:11 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
2024-06-28 14:30:22 +00:00
# and in the NixOS manual (accessible by running `nixos-help`).
2024-02-26 07:33:11 +00:00
2024-06-30 08:04:15 +00:00
{ pkgs, inputs, lib, ... }:
2024-02-26 07:33:11 +00:00
{
2024-05-31 09:29:49 +00:00
imports = [
inputs.home-manager.nixosModules.default
2024-06-28 14:11:38 +00:00
../../modules
2024-05-31 08:50:59 +00:00
];
2024-02-26 07:33:11 +00:00
2024-02-27 13:01:32 +00:00
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
2024-02-26 07:33:11 +00:00
# Set your time zone.
time.timeZone = "America/Los_Angeles";
2024-06-30 20:46:41 +00:00
snowhawk = {
dwm.enable = true;
syncthing.enable = true;
2024-07-01 20:20:21 +00:00
plymouth.enable = true;
2024-06-30 20:46:41 +00:00
};
2024-05-31 08:50:59 +00:00
2024-02-26 07:33:11 +00:00
# Configure keymap in X11
services.xserver = {
xkb = {
layout = "us";
variant = "";
};
};
# Enable CUPS to print documents.
services.printing.enable = true;
2024-06-26 08:50:53 +00:00
services.envfs.enable = true;
2024-02-26 07:33:11 +00:00
programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [
#
# ];
2024-06-28 14:30:22 +00:00
# Define a user account. Don't forget to set a password with `passwd`.
2024-02-26 07:33:11 +00:00
users.users.ravenshade = {
isNormalUser = true;
description = "Zynh Ludwig";
2024-06-30 08:48:55 +00:00
extraGroups = [ "networkmanager" "wheel" "audio" ];
2024-02-26 07:33:11 +00:00
packages = with pkgs; [
2024-05-29 21:15:43 +00:00
ripgrep
unzip
fzf
tree
2024-02-27 14:22:03 +00:00
gparted
2024-05-31 09:34:59 +00:00
arandr
2024-07-07 22:28:20 +00:00
brave
firefox
2024-05-30 05:39:56 +00:00
# steam
2024-06-28 14:11:38 +00:00
spotify
discord
steam-run
2024-02-26 07:33:11 +00:00
];
};
2024-06-30 05:13:05 +00:00
hardware.keyboard.uhk.enable = true;
2024-06-29 03:50:57 +00:00
services.gnome.gnome-keyring.enable = true;
programs.dconf.enable = true;
# I think I need a gtk theme? gnome-keyring
qt.platformTheme = "gtk2";
2024-02-26 07:33:11 +00:00
# Enable automatic login for the user.
2024-06-06 00:59:42 +00:00
services.displayManager.autoLogin = {
2024-02-26 07:33:11 +00:00
enable = true;
user = "ravenshade";
};
2024-06-30 08:04:15 +00:00
security.sudo.extraRules = lib.mkIf false [
2024-06-29 02:04:10 +00:00
{
users = [ "ravenshade" ];
commands = [{
command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
options = [ "SETENV" "NOPASSWD" ];
}];
}
];
2024-07-18 01:26:13 +00:00
security.polkit.enable = true;
2024-02-26 09:14:08 +00:00
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = { "ravenshade" = import ./home.nix; };
2024-06-28 07:12:22 +00:00
# backupFileExtension = "backup";
2024-02-26 09:14:08 +00:00
};
2024-02-27 13:01:32 +00:00
# programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
2024-02-26 07:33:11 +00:00
environment.systemPackages = with pkgs; [
2024-02-26 08:23:21 +00:00
neovim
curl
git
2024-06-28 05:34:25 +00:00
killall
2024-02-26 07:33:11 +00:00
];
# Enable trash:/// support
services.gvfs.enable = true;
2024-02-26 07:33:11 +00:00
# Enable the OpenSSH daemon.
2024-02-27 14:24:32 +00:00
services.openssh.enable = true;
2024-07-25 11:09:09 +00:00
services.openssh.openFirewall = true;
2024-02-26 07:33:11 +00:00
2024-07-25 11:25:07 +00:00
services.avahi.enable = true;
2024-07-25 11:43:44 +00:00
systemd.services.wakeonlan = {
description = "reenable wakeonlan every boot";
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
RemainAfterExit = "true";
ExecStart = "${pkgs.ethtool}/sbin/ethtool -s enp7s0 wol g";
2024-07-25 11:43:44 +00:00
};
wantedBy = [ "default.target" ];
};
2024-02-26 07:33:11 +00:00
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}