nixos/hosts/snowhawk/configuration.nix

93 lines
2.3 KiB
Nix
Raw Normal View History

2024-02-25 23:33:11 -08: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 07:30:22 -07:00
# and in the NixOS manual (accessible by running `nixos-help`).
2024-02-25 23:33:11 -08:00
2024-09-13 19:16:49 -07:00
{ pkgs, inputs, config, ... }:
2024-02-25 23:33:11 -08:00
{
2024-05-31 02:29:49 -07:00
imports = [
inputs.home-manager.nixosModules.default
2024-06-28 07:11:38 -07:00
../../modules
2024-05-31 01:50:59 -07:00
];
2024-02-25 23:33:11 -08:00
2024-02-27 05:01:32 -08:00
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
2024-02-25 23:33:11 -08:00
# Set your time zone.
time.timeZone = "America/Los_Angeles";
2024-06-30 13:46:41 -07:00
snowhawk = {
2024-09-13 16:53:10 -07:00
nix-ld.enable = true;
2024-09-13 19:16:49 -07:00
wake-on-lan.enable = true;
2024-09-11 19:47:42 -07:00
dwm.enable = true;
2024-06-30 13:46:41 -07:00
syncthing.enable = true;
2024-07-01 13:20:21 -07:00
plymouth.enable = true;
2024-06-30 13:46:41 -07:00
};
2024-05-31 01:50:59 -07:00
2024-02-25 23:33:11 -08:00
# Enable CUPS to print documents.
services.printing.enable = true;
2024-06-26 01:50:53 -07:00
services.envfs.enable = true;
# users sops setup
sops.secrets."passwords/ravenshade".neededForUsers = true;
users.mutableUsers = false;
2024-06-28 07:30:22 -07:00
# Define a user account. Don't forget to set a password with `passwd`.
2024-02-25 23:33:11 -08:00
users.users.ravenshade = {
isNormalUser = true;
description = "Zynh Ludwig";
hashedPasswordFile = config.sops.secrets."passwords/ravenshade".path;
2024-06-30 01:48:55 -07:00
extraGroups = [ "networkmanager" "wheel" "audio" ];
2024-02-25 23:33:11 -08:00
};
2024-06-29 22:13:05 -07:00
hardware.keyboard.uhk.enable = true;
2024-06-28 20:50:57 -07: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-25 23:33:11 -08:00
# Enable automatic login for the user.
2024-06-05 17:59:42 -07:00
services.displayManager.autoLogin = {
2024-02-25 23:33:11 -08:00
enable = true;
user = "ravenshade";
};
2024-07-17 18:26:13 -07:00
security.polkit.enable = true;
2024-09-13 17:24:55 -07:00
home-manager = {
users = { "ravenshade" = import ./home.nix; };
backupFileExtension = "backup";
};
2024-02-26 01:14:08 -08:00
2024-02-25 23:33:11 -08:00
environment.systemPackages = with pkgs; [
2024-02-26 00:23:21 -08:00
neovim
curl
git
2024-06-27 22:34:25 -07:00
killall
2024-02-25 23:33:11 -08:00
];
# Enable trash:/// support
services.gvfs.enable = true;
2024-02-25 23:33:11 -08:00
# Enable the OpenSSH daemon.
2024-02-27 06:24:32 -08:00
services.openssh.enable = true;
2024-07-25 04:09:09 -07:00
services.openssh.openFirewall = true;
2024-02-25 23:33:11 -08:00
2024-07-25 04:25:07 -07:00
services.avahi.enable = true;
2024-02-25 23:33:11 -08: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?
}