Compare commits

4 Commits

Author SHA1 Message Date
9ac155a7e2 Added udisks and nemo 2025-08-22 22:20:49 -04:00
14bdf543be Fixed 2025-08-21 12:45:26 -04:00
be99293472 Added configuration-common.nix 2025-08-21 11:34:23 -04:00
f63f0f897a Added server partitoning layout 2025-08-21 11:09:41 -04:00
9 changed files with 224 additions and 110 deletions

View File

@@ -9,11 +9,9 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./server-partitioning.nix
./modules/shares.nix
./modules/sops.nix
./modules/configuration-common.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
networking.hostName = "Titan"; # Define your hostname.
# Bootloader.
boot = {
kernelPackages = pkgs.linuxPackages_latest;
@@ -121,8 +119,8 @@
];
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 21 22 80 443 5900 8080 8384];
networking.firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 8384];
networking.firewall.allowedTCPPorts = [ 21 22 80 443 5900 8080 ];
networking.firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

View File

@@ -8,11 +8,11 @@
imports =
[ # Include the results of the hardware scan.
./xps13-hardware-configuration.nix
./modules/shares.nix
./modules/sops.nix
./modules/configuration-common.nix
# ./modules/shares.nix
# ./modules/sops.nix
./modules/laptop.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Bootloader.
boot = {
kernelPackages = pkgs.linuxPackages_latest;
@@ -30,23 +30,8 @@
options ath10k_core rawmode=1
'';
};
services.udisks2.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Select internationalisation properties.
i18n.defaultLocale = "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";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
@@ -122,11 +107,9 @@
programs.firefox.enable = true;
programs.hyprland.enable = true;
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.variables.EDITOR = "nvim";
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
@@ -139,10 +122,6 @@
# 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;
};
# List services that you want to enable:

View File

@@ -35,7 +35,8 @@
modules = [
{ nixpkgs.overlays = overlays; }
sops-nix.nixosModules.sops
./xps13-hardware-configuration.nix.nix
./configuration.nix
./xps13-hardware-configuration.nix
home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
@@ -51,7 +52,7 @@
}
];
};
nixosConfigurations.Titan = nixpkgs.lib.nixosSystem {
nixosConfigurations.server = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit overlays; };
modules = [

View File

@@ -12,7 +12,6 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
networking.hostName = "Titan"; # Define your hostname.
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View File

@@ -38,6 +38,67 @@
PLATFORMTHEME = "kde";
};
home.packages = with pkgs; [
autossh
fastfetch
ranger
zip
unzip
xz
p7zip
ripgrep
jq
ripgrep
eza
fzf
tmux
cowsay
lolcat
fortune
gnused
gnutar
gnupg
hugo
bat
which
nix-output-monitor
devenv
irssi
luarocks
lua5_1
lua-language-server
go
nodejs
uv
readline
cachix
sqlite
vifm-full
ranger
zoxide
(
python313.withPackages (
python-pkgs:
[
python-pkgs.prompt_toolkit
python-pkgs.pygments
python-pkgs.pynvim
python-pkgs.pudb
python-pkgs.ptpython
python-pkgs.ipython
]
)
)
neovim
zig
syncthing
lazygit
wofi
gopls
pyright
ncurses
rustup
wayvnc
gvfs
];
home.stateVersion = "25.05";
}

View File

@@ -53,24 +53,95 @@
PLATFORMTHEME = "kde";
};
home.packages = with pkgs; [
autossh
mesa-demos
bluez
bluez-tools
bluez-alsa
fastfetch
ranger
kdePackages.dolphin
zip
unzip
xz
p7zip
ripgrep
jq
ripgrep
eza
fzf
tmux
cowsay
lolcat
fortune
gnused
gnutar
gnupg
hugo
bat
which
nix-output-monitor
devenv
irssi
luarocks
lua5_1
gimp
lua-language-server
go
nodejs
uv
readline
cachix
sqlite
rofi
qutebrowser
foot
vifm-full
ranger
zoxide
hyprsysteminfo
(
python313.withPackages (
python-pkgs:
[
python-pkgs.prompt_toolkit
python-pkgs.pygments
python-pkgs.pynvim
python-pkgs.pudb
python-pkgs.ptpython
python-pkgs.ipython
]
)
)
neovim
zig
nodejs
go
syncthing
dosbox-x
lazygit
wofi
qutebrowser
waybar
uwsm
gopls
pyright
ncurses
rustup
wayvnc
power-profiles-daemon
wpa_supplicant_gui
gvfs
nemo-with-extensions
];
services.udiskie = {
enable = true;
settings = {
program_options = {
file_manager = "${pkgs.nemo-with-extensions}/bin/nemo";
};
};
};
programs.wofi = {
enable = true;
settings = {

View File

@@ -0,0 +1,51 @@
{ config, pkgs, ... }:
{
imports =
[
./shares.nix
./sops.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "America/New_York";
i18n.defaultLocale = "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";
};
nixpkgs.config.allowUnfree = true;
environment.variables.EDITOR = "nvim";
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
networking = {
hosts = {
"10.0.0.76" = [ "nas nas.lan" ];
"10.0.0.125" = [ "git" "git.lan" ];
"10.0.0.153" = [ "samphone" "samphone.lan" ];
"10.0.0.223" = [ "pve" "pve.lan" ];
"10.0.0.39" = [ "chronos" "chronos.lan" ];
"10.0.0.78" = [ "pyshelf" "pyshelf.lan" ];
"10.0.0.121" = [ "titan" "titan.lan" ];
"10.0.0.107" = [ "psql" "psql.lan" ];
"10.0.0.99" = [ "jelly" "jelly.lan" ];
"10.0.0.207" = [ "sync" "sync.lan" ];
"10.0.0.14" = [ "radios" "radios.lan" ];
"10.0.0.172" = [ "vault" "vault.lan" ];
"10.0.0.109" = [ "adguard" "adguard.lan" ];
"10.0.0.50" = [ "dashy" "dashy.lan" ];
};
};
}

View File

@@ -3,71 +3,6 @@
{
imports = [
];
home.packages = with pkgs; [
autossh
fastfetch
ranger
zip
unzip
xz
p7zip
ripgrep
jq
ripgrep
eza
fzf
tmux
cowsay
lolcat
fortune
gnused
gnutar
gnupg
hugo
bat
which
nix-output-monitor
devenv
direnv
irssi
luarocks
lua5_1
lua-language-server
go
nodejs
uv
readline
cachix
sqlite
vifm-full
ranger
zoxide
(
python313.withPackages (
python-pkgs:
[
python-pkgs.prompt_toolkit
python-pkgs.pygments
python-pkgs.pynvim
python-pkgs.pudb
python-pkgs.ptpython
python-pkgs.ipython
]
)
)
neovim
zig
nodejs
go
syncthing
lazygit
gopls
pyright
ncurses
rustup
wayvnc
gvfs
];
programs.neovim.plugins = [
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
@@ -77,7 +12,6 @@
};
services.syncthing = {
enable = true;
guiAddress = "0.0.0.0:8384";
};
programs.ranger = {
enable = true;
@@ -156,26 +90,24 @@
tmuxPlugins.vim-tmux-navigator
tmuxPlugins.vim-tmux-focus-events
tmuxPlugins.urlview
tmuxPlugins.tmux-fzf
{
plugin = tmuxPlugins.tokyo-night-tmux;
extraConfig = ''
set -g @tokyo-night-tmux_window_id_style digital
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style dsquare
set -g @tokyo-night-tmux_show_netspeed 1
set -g @tokyo-night-tmux_netspeed_iface "wlp2s0" # Detected via default route
set -g @tokyo-night-tmux_netspeed_showip 1 # Display IPv4 address (default 0)
set -g @tokyo-night-tmux_netspeed_refresh 1 # Update interval in seconds (default 1)
set -g @tokyo-night-tmux_show_path 1
set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full'
if-shell "[[ $(hostname) = 'xps13' ]]" {
set -g @tokyo-night-tmux_show_netspeed 1
set -g @tokyo-night-tmux_netspeed_iface 'wlp2s0'
set -g @tokyo-night-tmux_netspeed_showip 1
set -g @tokyo-night-tmux_netspeed_refresh 1
set -g @tokyo-night-tmux_show_battery_widget 1
set -g @tokyo-night-tmux_battery_name "BAT0"
set -g @tokyo-night-tmux_battery_low_threshold 21
}
set -g @tokyo-night-tmux_show_battery_widget 1
set -g @tokyo-night-tmux_battery_name "BAT0" # some linux distro have 'BAT0'
set -g @tokyo-night-tmux_battery_low_threshold 21 # default
'';
}
tmuxPlugins.tmux-fzf
# {
# plugin = tmuxPlugins.tilish;
# extraConfig = ''
@@ -245,6 +177,28 @@ bind F3 send-keys 'igrep .' C-m
enableBashIntegration = true;
enableZshIntegration = true;
};
programs.ssh = {
enable = true;
extraConfig = ''
Host *
ServerAliveInterval 30
ServerAliveCountMax 3
AddKeysToAgent yes
'';
matchBlocks = {
samphone = {
host = "10.0.0.153";
user = "u0_a771";
port = 8022;
identityFile = "~/.ssh/id_ed25519";
};
git = {
host = "10.0.0.125";
user = "git";
identityFile = "~/.ssh/id_ed25519";
};
};
};
programs.starship = {
enable = true;
# custom settings

View File

@@ -3,7 +3,7 @@
disk = {
main = {
type = "disk";
device = "/dev/disk/by-diskseq/1";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {