nixos/hosts/prismo/configuration.nix

69 lines
1.5 KiB
Nix
Raw Normal View History

2024-02-27 03:15:56 +00:00
{ config, lib, pkgs, ... }:
{
imports =
2024-02-27 04:07:03 +00:00
[
2024-02-27 03:15:56 +00:00
./hardware-configuration.nix
];
2024-02-27 04:07:03 +00:00
# Bootloader stuff
2024-02-27 03:15:56 +00:00
boot.loader.systemd-boot = {
enable = true;
};
boot.loader.efi = {
canTouchEfiVariables = true;
};
2024-02-27 04:07:03 +00:00
# Networking stuff
2024-02-27 03:43:43 +00:00
networking.hostName = "prismo"; # Define your hostname.
2024-02-27 03:15:56 +00:00
networking.networkmanager.enable = true;
2024-02-27 04:07:03 +00:00
# Set time stuff
time.timeZone = "Europe/Oslo";
2024-02-27 03:15:56 +00:00
2024-02-27 04:07:03 +00:00
# Setup hyprland
services.xserver.enable = true;
2024-02-27 03:15:56 +00:00
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
2024-02-27 04:07:03 +00:00
# Setup common XDG env vars
2024-02-27 03:15:56 +00:00
environment.sessionVariables = rec {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
XDG_BIN_HOME = "$HOME/.local/bin";
PATH = [
"${XDG_BIN_HOME}"
];
};
2024-02-27 04:07:03 +00:00
# Enable sudo
2024-02-27 03:15:56 +00:00
security.sudo.enable = true;
2024-02-27 04:07:03 +00:00
# Enable flakes
2024-02-27 03:15:56 +00:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2024-02-27 04:07:03 +00:00
nixpkgs.config.allowUnfree = true;
# Install system-wide packages
2024-02-27 03:15:56 +00:00
environment.systemPackages = with pkgs; [
2024-02-27 04:07:03 +00:00
vim
2024-02-27 03:15:56 +00:00
wget
curl
alacritty
greetd.tuigreet
git
];
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11"; # Did you read the comment?
}