Commit for generation 218

This commit is contained in:
2024-10-09 22:24:38 -04:00
parent 472faa2af2
commit 6dd1a60bcd
3 changed files with 116 additions and 46 deletions

4
flake.lock generated
View File

@@ -506,8 +506,8 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1728477685, "lastModified": 1728527041,
"narHash": "sha256-+6Wuh8HqJaDwFMVuMePA873exxVmSXnU5hy6EWSrLmo=", "narHash": "sha256-PmRJCfpY1PoJ3YP5IjCsQL1vc5zElFowAWJLjUwvlJc=",
"path": "/home/pagedmov/sysflakes/glasshouse-desktop/dotfiles/packages/nixvim", "path": "/home/pagedmov/sysflakes/glasshouse-desktop/dotfiles/packages/nixvim",
"type": "path" "type": "path"
}, },

View File

@@ -2,16 +2,19 @@
{ config, lib, pkgs, inputs, ... }: { config, lib, pkgs, inputs, ... }:
{ {
system.stateVersion = "24.05";
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
## System - Environment ##
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking = { networking = {
networkmanager.enable = true; # Easiest to use and most distros use this by default. networkmanager.enable = true;
hostName = "glasshaus"; hostName = "glasshaus";
hosts = { hosts = {
"192.168.1.163" = [ "glasshaus.info" ]; "192.168.1.163" = [ "glasshaus.info" ];
@@ -22,17 +25,6 @@
}; };
}; };
programs = {
zsh.enable = true;
nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
ffmpeg-full
];
};
};
environment = { environment = {
variables = { variables = {
XCURSOR_SIZE = "24"; XCURSOR_SIZE = "24";
@@ -44,7 +36,6 @@
]; ];
}; };
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@@ -52,22 +43,45 @@
programs.steam.enable = true; programs.steam.enable = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
# Enable sound. ## Programs - Services - Hardware ##
#hardware.pulseaudio.enable = true;
# OR programs = {
zsh.enable = true;
nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
ffmpeg-full
];
};
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
services = { services = {
pipewire = { pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true; wireplumber.enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
}; };
udev.enable = true; udev.enable = true;
dbus.enable = true; dbus.enable = true;
mullvad-vpn.enable = true; mullvad-vpn.enable = true;
blueman.enable = true; blueman.enable = true;
openssh.enable = true;
foundryvtt = {
enable = false;
hostName = "wumbodnd";
package = inputs.foundryvtt.packages.${pkgs.system}.foundryvtt_12;
minifyStaticFiles = true;
proxyPort = 443;
proxySSL = false;
upnp = false;
};
}; };
hardware = { hardware = {
@@ -78,57 +92,80 @@
powerOnBoot = true; powerOnBoot = true;
}; };
}; };
## Users - Packages ##
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
''; '';
users.users.pagedmov = { users.users.pagedmov = {
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ];
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
fonts.packages = with pkgs; [ times-newer-roman nerdfonts jetbrains-mono ];
fonts.packages = with pkgs; [
times-newer-roman
nerdfonts
jetbrains-mono
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# a
alsa-lib alsa-lib
alsa-utils alsa-utils
# b
bc bc
# c
cava cava
clang clang
clang-tools clang-tools
cmake cmake
# d
# e
# f
fail2ban fail2ban
feh feh
ffmpeg-full ffmpeg-full
fuse fuse
fzf fzf
# g
git git
gnumake gnumake
gst_all_1.gstreamer gst_all_1.gstreamer
# h
htop htop
hyprland hyprland
hyprland-workspaces hyprland-workspaces
hyprpaper hyprpaper
hyprpicker hyprpicker
# i
imagemagick imagemagick
inetutils inetutils
# j
# k
kitty kitty
# l
libclang libclang
libcxx libcxx
lolcat lolcat
lsof lsof
lua-language-server lua-language-server
luarocks luarocks
# m
mesa mesa
mpd mpd
mullvad mullvad
# n
neofetch neofetch
nix-index nix-index
nix-prefetch-scripts nix-prefetch-scripts
nixos-option nixos-option
nix-search-cli nix-search-cli
# o
openssl openssl
# p
p7zip p7zip
pamixer pamixer
parted parted
@@ -139,47 +176,38 @@ pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
protonmail-bridge protonmail-bridge
protontricks protontricks
pyright pyright
# q
quintom-cursor-theme quintom-cursor-theme
# r
# s
socat socat
sox sox
stress stress
# t
tor tor
tree tree
# u
unrar unrar
unzip unzip
usbutils usbutils
# v
vim vim
vim vim
vscode-langservers-extracted vscode-langservers-extracted
vulkan-loader vulkan-loader
# w
wget wget
wine wine
wineWowPackages.full wineWowPackages.full
wl-clipboard wl-clipboard
# x
xpad xpad
xwaylandvideobridge xwaylandvideobridge
# y
# z
]; ];
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.foundryvtt = {
enable = true;
hostName = "wumbodnd";
package = inputs.foundryvtt.packages.${pkgs.system}.foundryvtt_12;
minifyStaticFiles = true;
proxyPort = 443;
proxySSL = false;
upnp = false;
};
system.stateVersion = "24.05"; # Did you read the comment?
} }

View File

@@ -1,6 +1,12 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
# need:
#vim-markdown
#vim-sneak
#vim-slash
#undotree
#automkdr.nvim
extraPlugins = [ extraPlugins = [
(pkgs.vimUtils.buildVimPlugin { # vimwiki (pkgs.vimUtils.buildVimPlugin { # vimwiki
name = "vimwiki"; name = "vimwiki";
@@ -11,5 +17,41 @@
hash = "sha256-Upx29rIPwW/e7Lkmf0PNOpIACnAXIzlkfa6V1p2nYHM="; hash = "sha256-Upx29rIPwW/e7Lkmf0PNOpIACnAXIzlkfa6V1p2nYHM=";
}; };
}) })
(pkgs.vimUtils.buildVimPlugin {
name = "vim-markdown";
src = pkgs.fetchFromGitHub {
owner = "preservim";
repo = "vim-markdown";
rev = "8f6cb3a6ca4e3b6bcda0730145a0b700f3481b51";
hash = "sha256-ZCCSjZ5Xok4rnIwfa4VUEaz6d3oW9066l0EkoqiTppM=";
};
})
(pkgs.vimUtils.buildVimPlugin {
name = "vim-sneak";
src = pkgs.fetchFromGitHub {
owner = "justinmk";
repo = "vim-sneak";
rev = "c13d0497139b8796ff9c44ddb9bc0dc9770ad2dd";
hash = "sha256-ndWhnV0fgCcqCGwVyM07GfmUB3CitBZbOWvZtsB1tBk=";
};
})
(pkgs.vimUtils.buildVimPlugin {
name = "vim-slash";
src = pkgs.fetchFromGitHub {
owner = "junegunn";
repo = "vim-slash";
rev = "31aee09b7ea8893a18fa34f65e63e364fc998444";
hash = "sha256-hC590lmKBssLCSKPF9O2cnt6TCJkklzbbhDNhf1ozUU=";
};
})
(pkgs.vimUtils.buildVimPlugin {
name = "automkdir.nvim";
src = pkgs.fetchFromGitHub {
owner = "mateuszwieloch";
repo = "automkdir.nvim";
rev = "beeb2dd76f1c3ac776d901c43217a774f1f045de";
hash = "sha256-lKSCZ80b/+OV56858FDK7x/zhcuU/AWuCDe+8NdhziU=";
};
})
]; ];
} }