dotfiles/hosts/lolcathost/default.nix

271 lines
6.5 KiB
Nix
Raw Normal View History

2024-11-07 17:37:15 +10:00
{
2024-10-30 13:51:36 +10:00
pkgs,
inputs,
2024-11-07 17:37:15 +10:00
...
}: let
home-manager = builtins.fetchTarball {
url = "https://github.com/nix-community/home-manager/archive/master.tar.gz";
sha256 = "19w63qccz78v0spx03911z98w1bvlxvd07hb0ma14a4vdzi4ninj";
};
in {
2024-10-30 13:51:36 +10:00
imports = [
2024-11-07 17:37:15 +10:00
./hardware-configuration.nix
(import "${home-manager}/nixos")
inputs.spicetify-nix.nixosModules.default
];
programs.spicetify = let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
hidePodcasts
shuffle # shuffle+ (special characters are sanitized out of extension names)
2024-10-30 13:51:36 +10:00
];
2024-11-07 17:37:15 +10:00
#theme = spicePkgs.themes.catppuccin;
#colorScheme = "mocha";
};
2024-10-30 13:51:36 +10:00
# Use the systemd-boot EFI boot loader.
2024-11-07 17:37:15 +10:00
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
efiSupport = true;
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work on this system
device = "nodev";
};
};
2024-10-30 13:51:36 +10:00
# Set your time zone.
time.timeZone = "Australia/Brisbane";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
#packages = with pkgs; [
# nerdfonts
#];
2024-10-30 13:51:36 +10:00
};
2024-11-07 17:37:15 +10:00
# ----- NETWORKING SECTION -----
networking.hostName = "lolcathost";
networking.networkmanager.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = true;
2024-10-30 13:51:36 +10:00
2024-11-07 17:37:15 +10:00
# ----- SERVICES -----
services = {
# Set display manager (login screen)
#displayManager = {
# sddm = {
# enable = true;
# #theme = "${import ./sddm-theme.nix { inherit pkgs; }}";
# wayland.enable = true; # enable experimental sddm support for wayland
# };
# defaultSession = "hyprland";
#};
2024-10-30 13:51:36 +10:00
2024-11-07 17:37:15 +10:00
# Enable sound
# TODO: use the modules/core/pipewire.nix module instead :)
pipewire = {
enable = true;
pulse.enable = true;
};
# Enable touchpad support
libinput.enable = true;
tumbler.enable = true; # Thunar image thumbnail support
gvfs.enable = true; # Thunar mount, trash, and other functionality
2024-11-07 17:37:15 +10:00
};
# allow wheel group to use passwordless sudo
users = {
# using fish as the login shell tends
# to go very poorly because it isn't
# POSIX compliant, so we'll just use
# simple Bash then :)
defaultUserShell = pkgs.bash;
users = {
# literally me fr (personal account)
2024-11-07 17:37:15 +10:00
me = {
isNormalUser = true;
extraGroups = ["wheel"];
shell = pkgs.bash; #pkgs.fish
packages = with pkgs; [
firefox
nitch
starfetch
];
};
2024-11-08 04:08:30 +10:00
# user for my professional jobs and stuff
ae = {
2024-11-07 17:37:15 +10:00
isNormalUser = true;
extraGroups = ["wheel"];
2024-11-08 04:08:30 +10:00
shell = pkgs.bash; #pkgs.fish
2024-11-07 17:37:15 +10:00
packages = with pkgs; [
];
};
2024-11-08 04:08:30 +10:00
# # programming/development account
# dev = {
# isNormalUser = true;
# extraGroups = ["wheel"];
# shell = pkgs.bash; #pkgs.zsh
# packages = with pkgs; [
# ];
# };
# user for friends to ssh into
friends = {
2024-11-07 17:37:15 +10:00
isNormalUser = true;
2024-11-08 04:08:30 +10:00
shell = pkgs.fish;
2024-11-07 17:37:15 +10:00
packages = with pkgs; [
];
};
};
};
home-manager = {
users.me = import ../../homes/me;
sharedModules = [
inputs.nixcord.homeManagerModules.nixcord
2024-10-30 13:51:36 +10:00
];
};
2024-11-07 17:37:15 +10:00
# ---- SYSTEM PACKAGES -----
2024-10-30 13:51:36 +10:00
environment.systemPackages = with pkgs; [
2024-11-07 17:37:15 +10:00
# User Environment
inputs.swww.packages.${pkgs.system}.swww
#vesktop
helvum
easyeffects
ani-cli
wl-clipboard # clipboard for wayland
2024-11-08 04:08:30 +10:00
kcalc # TEMP: (FOR TESTING)
2024-11-07 17:37:15 +10:00
python311 # I use 3.11 since it's in a pretty stable state now
poetry # python dependency management and packaging
# fish plugins
grc # colorise command outputs
httpie
curlie
zoxide
doggo
2024-11-08 04:08:30 +10:00
tldr
2024-11-07 17:37:15 +10:00
# Pretty necessary
git
brightnessctl
acpi
# Unix Commands
2024-10-30 13:51:36 +10:00
wget
2024-11-07 17:37:15 +10:00
tree
2024-11-08 04:08:30 +10:00
unzip
2024-11-07 17:37:15 +10:00
];
# Enable the use of certain programs
programs = {
hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true;
};
zsh.enable = true;
fish.enable = true;
# I want to use fish as my login shell but it always goes terrible
# cause it isn't POSIX compliant, so instead Bash is my login and
# will just exec fish (^-^)
bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
# Thunar also uses: `services.tumbler` & `services.gvfs`
thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-volman # for removable drives (ie USBs)
thunar-archive-plugin # create and extract archives
thunar-media-tags-plugin # change metadata for media files
];
};
2024-11-07 17:37:15 +10:00
};
# ----- FONTS -----
fonts = {
enableDefaultPackages = true; # no clue what this line does tbh
packages = with pkgs; [
#(nerdfonts.override {
# fonts = [
# "Cousine"
# "Iosevka"
# "JetBrainsMono"
# ];
# })
nerdfonts
2024-11-07 17:37:15 +10:00
# texlive maintains a noto-emoji flake
texlivePackages.noto-emoji
];
fontconfig = {
defaultFonts = {
serif = ["Iosevka"]; # TODO: package Iosevka Etoile since Iosevka isn't a serif font
sansSerif = ["Iosevka "];
monospace = ["Cousine"];
emoji = ["Noto Emoji"];
};
};
};
# Enable the new CLI commands and the flakes as experimental features
nix.settings.experimental-features = [
"nix-command"
"flakes"
2024-10-30 13:51:36 +10:00
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
2024-11-07 17:37:15 +10:00
# Enable OpenGL
hardware = {
graphics.enable = true;
};
2024-10-30 13:51:36 +10:00
2024-11-07 17:37:15 +10:00
# DO NOT MODIFY
2024-10-30 13:51:36 +10:00
system.stateVersion = "24.05"; # Did you read the comment?
}