Moved hosts configurations to instances
This commit is contained in:
parent
4d706138d6
commit
cbe62f3201
24 changed files with 344 additions and 344 deletions
211
instances/thor/configuration.nix
Normal file
211
instances/thor/configuration.nix
Normal file
|
|
@ -0,0 +1,211 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
with lib; {
|
||||
boot = {
|
||||
binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ];
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_6_1;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback hid-nintendo ];
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
initrd = {
|
||||
checkJournalingFS = true;
|
||||
luks.devices = {
|
||||
root = {
|
||||
device = "/dev/nvme0n1p2";
|
||||
preLVM = true;
|
||||
allowDiscards = true;
|
||||
bypassWorkqueues = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
environment = {
|
||||
pathsToLink = [ "/share/zsh" ];
|
||||
systemPackages = builtins.attrValues { inherit (pkgs) kakoune tmux vim; };
|
||||
};
|
||||
|
||||
hardware = {
|
||||
opengl.enable = true;
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
package = pkgs.bluezFull;
|
||||
};
|
||||
enableRedistributableFirmware = true;
|
||||
pulseaudio.enable = false;
|
||||
# nvidia.modesetting.enable = true;
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "it_IT.UTF-8";
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
flashrom.enable = true;
|
||||
gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
custom = {
|
||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
};
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
steam = {
|
||||
enable = true;
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs = pkgs: with pkgs; [ icu ];
|
||||
extraProfile = ''
|
||||
export GSETTINGS_SCHEMA_DIR="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas/"
|
||||
'';
|
||||
};
|
||||
};
|
||||
zsh = { enable = true; };
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "thor"; # Define your hostname.
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
services = {
|
||||
avahi = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
nssmdns = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
addresses = true;
|
||||
domain = true;
|
||||
userServices = true;
|
||||
workstation = true;
|
||||
};
|
||||
extraServiceFiles = {
|
||||
ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||
};
|
||||
};
|
||||
blueman.enable = true;
|
||||
# clamav = {
|
||||
# daemon.enable = true;
|
||||
# updater.enable = true;
|
||||
# };
|
||||
dbus.packages = [ pkgs.dconf ];
|
||||
gnome.gnome-keyring.enable = true;
|
||||
gvfs = {
|
||||
enable = true;
|
||||
# package = pkgs.gnome3.gvfs;
|
||||
};
|
||||
# joycond.enable = true;
|
||||
keybase.enable = true;
|
||||
onedrive = { enable = true; package = pkgs.unstable_pkgs.onedrive; };
|
||||
openssh = { enable = true; openFirewall = true; };
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = { enable = true; support32Bit = true; };
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
# media-session.enable = true;
|
||||
};
|
||||
power-profiles-daemon.enable = true;
|
||||
smartd.enable = true;
|
||||
snapper = {
|
||||
configs =
|
||||
let
|
||||
common = {
|
||||
ALLOW_USERS = [ "bertof" ];
|
||||
TIMELINE_CLEANUP = true;
|
||||
TIMELINE_CREATE = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
bertof_home = recursiveUpdate common { SUBVOLUME = "/home/bertof"; };
|
||||
};
|
||||
};
|
||||
thermald.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager = {
|
||||
# gnome.enable = true;
|
||||
# cinnamon.enable = true;
|
||||
# plasma5 = { enable = true; runUsingSystemd = true; useQtScaling = true; };
|
||||
};
|
||||
windowManager.bspwm = { enable = true; };
|
||||
# displayManager.gdm = { enable = true; };
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme =
|
||||
"${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
|
||||
};
|
||||
|
||||
videoDrivers = [ "nvidia" ];
|
||||
layout = "us,it";
|
||||
xkbOptions =
|
||||
"eurosign:e,terminate:ctrl_alt_bksp,compose:rctrl,grp:menu_toggle";
|
||||
xrandrHeads = [{
|
||||
primary = true;
|
||||
output = "DP-4";
|
||||
}];
|
||||
};
|
||||
# gnome.gnome-remote-desktop.enable = true;
|
||||
};
|
||||
|
||||
# services.teamviewer.enable = true;
|
||||
|
||||
security = {
|
||||
tpm2.enable = true;
|
||||
rtkit.enable = true;
|
||||
pam.services = { autounlock_gnome_keyring.enableGnomeKeyring = true; };
|
||||
sudo.extraConfig = ''
|
||||
Defaults pwfeedback
|
||||
'';
|
||||
};
|
||||
|
||||
sound.enable = false;
|
||||
|
||||
users.users.bertof = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"audio"
|
||||
"input"
|
||||
"docker"
|
||||
"flashrom"
|
||||
"libvirtd"
|
||||
"network"
|
||||
"networkmanager"
|
||||
"usb"
|
||||
"video"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
kvmgt.enable = true;
|
||||
libvirtd.enable = true;
|
||||
podman.enable = true;
|
||||
# virtualbox.host.enable = true;
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
packageOverrides = pkgs: {
|
||||
steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.icu ]; };
|
||||
};
|
||||
# cudaSupport = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11"; # Did you read the comment?
|
||||
}
|
||||
64
instances/thor/hardware-configuration.nix
Normal file
64
instances/thor/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/6c06428e-c296-4ef1-8429-62bafb860126";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=@root"
|
||||
"x-gvfs-hide"
|
||||
"space_cache=v2"
|
||||
"discard"
|
||||
"compress-force=zstd:1"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/B9D2-255C";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/home/bertof" = {
|
||||
device = "/dev/disk/by-uuid/6c06428e-c296-4ef1-8429-62bafb860126";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=@home_bertof"
|
||||
"x-gvfs-hide"
|
||||
"space_cache=v2"
|
||||
"discard"
|
||||
"compress-force=zstd:1"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-uuid/6c06428e-c296-4ef1-8429-62bafb860126";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=@nix"
|
||||
"x-gvfs-hide"
|
||||
"space_cache=v2"
|
||||
"discard"
|
||||
"compress-force=zstd:1"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/dee188e4-4ff8-417c-9419-b7f00ecb9989"; }
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 1024 * 32;
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
111
instances/thor/hm.nix
Normal file
111
instances/thor/hm.nix
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
{ pkgs, ... }: {
|
||||
home = {
|
||||
language.base = "it_IT.UTF-8";
|
||||
keyboard = {
|
||||
layout = "us,it";
|
||||
variant = ",colemak,";
|
||||
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ];
|
||||
};
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
# electrum
|
||||
# element-desktop # matrix client
|
||||
evolution
|
||||
# freecad
|
||||
# minecraft
|
||||
# mycrypto
|
||||
# pcmanfm
|
||||
# pulseaudio
|
||||
# signal-desktop
|
||||
# slack
|
||||
# wineFull
|
||||
arandr authenticator authy discord dmenu docker-compose docker-machine droidcam easyeffects evince filelight gallery-dl google-chrome gucharmap handbrake httpie inkscape krita openvpn p7zip pavucontrol pcsx2 pentablet-driver procps pulseaudio retroarchFull shotwell spotify tdesktop transmission-gtk virt-manager virt-viewer wireguard-tools xournalpp zoom-us;
|
||||
inherit (pkgs.gnome)
|
||||
# geary
|
||||
# gnome-boxes
|
||||
# gnome-calendar
|
||||
# gnome-sound-recorder
|
||||
# seahorse
|
||||
eog file-roller gnome-font-viewer gnome-screenshot gnome-system-monitor totem;
|
||||
inherit (pkgs.unstable_pkgs) postman skypeforlinux;
|
||||
};
|
||||
};
|
||||
|
||||
services = { gnome-keyring.enable = true; };
|
||||
|
||||
imports = [
|
||||
../../modules/hm/__basic.nix
|
||||
|
||||
../../modules/hm/development/cpp.nix
|
||||
../../modules/hm/development/data.nix
|
||||
../../modules/hm/development/database.nix
|
||||
../../modules/hm/development/docker.nix
|
||||
# ../../modules/hm/development/go.nix
|
||||
../../modules/hm/development/javascript.nix
|
||||
../../modules/hm/development/kubernetes.nix
|
||||
../../modules/hm/development/latex.nix
|
||||
../../modules/hm/development/markdown.nix
|
||||
../../modules/hm/development/nix.nix
|
||||
../../modules/hm/development/python.nix
|
||||
../../modules/hm/development/rust.nix
|
||||
|
||||
../../modules/hm/alacritty.nix
|
||||
../../modules/hm/autorandr.nix
|
||||
../../modules/hm/biblio.nix
|
||||
../../modules/hm/bitwarden.nix
|
||||
../../modules/hm/blender_nvidia.nix
|
||||
../../modules/hm/bspwm.nix
|
||||
../../modules/hm/cava.nix
|
||||
../../modules/hm/dunst.nix
|
||||
# ../../modules/hm/dwarf-fortress.nix
|
||||
../../modules/hm/easyeffects.nix
|
||||
../../modules/hm/firefox.nix
|
||||
../../modules/hm/fonts.nix
|
||||
# ../../modules/hm/gnome_shell.nix
|
||||
# ../../modules/hm/grobi.nix
|
||||
../../modules/hm/gtk_theme.nix
|
||||
../../modules/hm/heif.nix
|
||||
../../modules/hm/helix.nix
|
||||
../../modules/hm/joystickwake.nix
|
||||
../../modules/hm/kakoune.nix
|
||||
../../modules/hm/kdeconnect.nix
|
||||
# ../../modules/hm/keepassxc.nix
|
||||
# ../../modules/hm/kitty.nix
|
||||
../../modules/hm/lf.nix
|
||||
../../modules/hm/lutris.nix
|
||||
../../modules/hm/mangohud.nix
|
||||
../../modules/hm/megasync.nix
|
||||
../../modules/hm/mpv.nix
|
||||
# ../../modules/hm/nautilus.nix
|
||||
../../modules/hm/ncspot.nix
|
||||
../../modules/hm/nix-index.nix
|
||||
../../modules/hm/noti.nix
|
||||
../../modules/hm/nushell.nix
|
||||
../../modules/hm/obs-studio.nix
|
||||
../../modules/hm/office.nix
|
||||
../../modules/hm/pass.nix
|
||||
../../modules/hm/picom.nix
|
||||
../../modules/hm/polybar.nix
|
||||
../../modules/hm/pro_audio.nix
|
||||
../../modules/hm/pycharm.nix
|
||||
../../modules/hm/spotifyd.nix
|
||||
../../modules/hm/research.nix
|
||||
../../modules/hm/rofi.nix
|
||||
# ../../modules/hm/screen_locker.nix
|
||||
# ../../modules/hm/security.nix
|
||||
../../modules/hm/sxhkd.nix
|
||||
../../modules/hm/syncthing.nix
|
||||
../../modules/hm/terminator.nix
|
||||
# ../../modules/hm/thunar.nix
|
||||
# ../../modules/hm/twmn.nix
|
||||
../../modules/hm/update_background.nix
|
||||
../../modules/hm/vim.nix
|
||||
../../modules/hm/webapp.nix
|
||||
../../modules/hm/xidlehook.nix
|
||||
../../modules/hm/xresources.nix
|
||||
../../modules/hm/zathura.nix
|
||||
../../modules/hm/zellij.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "22.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue