Compare commits
6 Commits
working_br
...
2e2d7f679b
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e2d7f679b | |||
| 9ac155a7e2 | |||
| e31d00c7bf | |||
| 14bdf543be | |||
| be99293472 | |||
| f63f0f897a |
@@ -9,10 +9,10 @@
|
||||
[ # 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" ];
|
||||
nix.settings.trusted-users = [ "root" "th3r00t" ];
|
||||
networking.hostName = "Titan"; # Define your hostname.
|
||||
# Bootloader.
|
||||
boot = {
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -70,7 +70,17 @@
|
||||
uwsm
|
||||
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 = {
|
||||
|
||||
Binary file not shown.
51
modules/configuration-common.nix
Normal file
51
modules/configuration-common.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -55,6 +55,7 @@
|
||||
]
|
||||
)
|
||||
)
|
||||
pyenv
|
||||
neovim
|
||||
zig
|
||||
nodejs
|
||||
@@ -193,11 +194,18 @@
|
||||
# terminal = "xterm-kitty:RGB";
|
||||
tmuxinator.enable = true;
|
||||
extraConfig = ''
|
||||
if-shell "[[ $(hostname) = 'xps13' ]]" {
|
||||
set-option -as terminal-features 'foot:RGB'
|
||||
}
|
||||
if-shell "[[ $(hostname) = 'Titan' ]]" {
|
||||
set-option -as terminal-features 'xterm-256color:RGB'
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -g terminal-overrides ",xterm-256color:RGB"
|
||||
}
|
||||
set-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE"
|
||||
set -g focus-events on
|
||||
set -g escape-time 3
|
||||
set-option -g status-position top
|
||||
set-option -as terminal-features 'foot:RGB'
|
||||
set -g default-terminal 'tmux-256color'
|
||||
bind-key b choose-tree -Z "run-shell 'tmux swap-pane -s %%'"
|
||||
# bind C-p display-popup -E -w 60% -h 70% 'tmuxsessions.sh'
|
||||
@@ -207,6 +215,7 @@
|
||||
# bind C-c display-popup -E -w 50% -h 50% 'nvim +":cd ~/org" ~/org/refile.norg'
|
||||
# bind C-c display-popup -E -w 50% -h 50% 'nvim +"VimwikiIndex"
|
||||
bind C-c display-popup -E -w 60% -h 60% "pytui -n"
|
||||
bind C-m display-popup -E -w 60% -h 60% "pytui -m"
|
||||
# bind C-w display-popup -E -w 40% -h 60% "pytui -D"
|
||||
|
||||
bind C-o display-popup -E -w 50% -h 50% 'igrep ~/wiki/notes'
|
||||
@@ -245,6 +254,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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-diskseq/1";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
|
||||
Reference in New Issue
Block a user