This commit is contained in:
do butterflies cry? 2026-03-07 13:08:30 +10:00
parent ac95603fc4
commit 61b531aa11
42 changed files with 1061 additions and 445 deletions

30
groups/all/default.nix Normal file
View file

@ -0,0 +1,30 @@
# configuration shared by all cerulean nodes
{lib, ...}: {
nix.settings.extra-experimental-features = [
"nix-command"
"flakes"
"pipe-operators"
];
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = lib.mkDefault "tohka";
networking.networkmanager.enable = true;
networking.nftables.enable = true; # firewall
networking.firewall.enable = true;
time.timeZone = lib.mkDefault "America/New_York";
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
}

View file

@ -0,0 +1,80 @@
{
pkgs,
root,
...
}: {
imports = [
/${root}/hosts/modules/steam.nix
];
# Configure keymap in X11
services.xserver.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
audio.enable = true;
wireplumber.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
# pulse.enable = true;
# jack.enable = true;
};
security.polkit.enable = true;
services.nginx.enable = true;
services.mullvad-vpn = {
enable = true;
package = pkgs.mullvad-vpn; # mullvad only has the cli
};
# Enable docker virtualisation.
virtualisation.docker.enable = true;
programs.nix-ld = {
enable = true;
libraries = [
## Put here any library that is required when running a package
## ...
## Uncomment if you want to use the libraries provided by default in the steam distribution
## but this is quite far from being exhaustive
## https://github.com/NixOS/nixpkgs/issues/354513
(pkgs.runCommand "steamrun-lib" {} "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")
];
};
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 7d --keep 3";
flake = "/home/dea/dea-files"; # sets NH_OS_FLAKE variable for you
};
# Better alternative to the standard ssh-agent
# services.pcscd.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# 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 = "24.11"; # Did you read the comment?
}

View file

@ -0,0 +1,67 @@
{upkgs, ...}: {
# ======================
# List packages installed in system profile. To search, run:
# $ nix search wget
# nixos-rebuild switch --use-remote-sudo
# ======================
# Update packages?:
# sudo nix-channel --update
# sudo nixos-rebuild switch
# ======================
# sudo nixos-rebuild switch --flake .
environment.systemPackages = with upkgs; [
wget
lunarvim
vscode
python3
p7zip
unzip
chawan # tui browser cha <url>
git
gcc
gdb
glibc.static
nixfmt
kitty # terminal
wayland
emacs # calander/todo list
nemo # file browser
monophony # yt music tryout
vesktop # discord-canary
equibop # equibop 3.1.7
vivaldi # vivaldi install requires qt5
qt5.qtbase
starship # shell customizer
libreoffice-qt # libreoffice
hunspell
hunspellDicts.uk_UA
hunspellDicts.th_TH
openjdk
notepad-next # notepad++
sqlitebrowser
ffmpeg-full
yt-dlp
qbittorrent
bottles # windows emulation
element-desktop # element 4 matrix
libsForQt5.qtstyleplugin-kvantum # libs for Qt5
libsForQt5.qt5ct
libsForQt5.qt5.qtbase
btop-cuda
croc
syncplay
];
}

16
groups/yezelhlev/user.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
users.users.dea = {
isNormalUser = true;
description = "dea";
extraGroups = [
"networkmanager"
"wheel"
"docker"
];
packages = with pkgs; [
kdePackages.kate
# thunderbird
];
};
}