Pull in flake.lock from refactor #2
18
flake.nix
18
flake.nix
|
@ -66,23 +66,23 @@
|
||||||
in {
|
in {
|
||||||
# nixos-rebuild switch --flake .#hostname
|
# nixos-rebuild switch --flake .#hostname
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# PCs and Laptops
|
firefly = mkNix [ ./hosts/firefly/system ]; # Main Desktop
|
||||||
firefly = mkNix [ ./hosts/firefly/system ];
|
shuttle = mkNix [ ./hosts/shuttleworth/system ]; # Pinebook Pro
|
||||||
shuttleworth = mkNix [ ./hosts/shuttleworth/system ];
|
lacros = mkNix [ ./hosts/lacros/system ]; # Dell Chromebook
|
||||||
lacros = mkNix [ ./hosts/lacros/system ];
|
redmond = mkNix [ ./hosts/redmond/system ]; # Lenovo Laptop
|
||||||
redmond = mkNix [ ./hosts/redmond/system ];
|
treefruit = mkNix [ ./hosts/treefruit/system ]; # Macbook 14,1
|
||||||
|
|
||||||
# Servers
|
cyberspark = mkNix [ ./hosts/cyberspark/system ]; # Dell Optiplex 7010
|
||||||
cyberspark = mkNix [ ./hosts/cyberspark/system ];
|
bomberman = mkNix [ ./hosts/bomberman/system ]; # Oracle ARM
|
||||||
bomberman = mkNix [ ./hosts/bomberman/system ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# home-manager switch --flake .#username@hostname
|
# home-manager switch --flake .#username@hostname
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"jimbo@firefly" = mkHome [ ./hosts/firefly/home ] nixpkgs.legacyPackages.x86_64-linux;
|
"jimbo@firefly" = mkHome [ ./hosts/firefly/home ] nixpkgs.legacyPackages.x86_64-linux;
|
||||||
"jimbo@shuttleworth" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux;
|
"jimbo@shuttle" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux;
|
||||||
"jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux;
|
"jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux;
|
||||||
"jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux;
|
"jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
"jimbo@treefruit" = mkHome [ ./hosts/treefruit/home ] nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
|
||||||
"jimbo@cyberspark" = mkHome [ ./hosts/cyberspark/home ] nixpkgs.legacyPackages.x86_64-linux;
|
"jimbo@cyberspark" = mkHome [ ./hosts/cyberspark/home ] nixpkgs.legacyPackages.x86_64-linux;
|
||||||
"jimbo@bomberman" = mkHome [ ./hosts/bomberman/home ] nixpkgs.legacyPackages.aarch64-linux;
|
"jimbo@bomberman" = mkHome [ ./hosts/bomberman/home ] nixpkgs.legacyPackages.aarch64-linux;
|
||||||
|
|
|
@ -91,48 +91,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Network mounts
|
# Network mounts
|
||||||
"/home/jimbo/JimboNFS/Downloads" = {
|
"/home/jimbo/JimboNFS" = {
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Downloads";
|
device = "${config.ips.server}:/export/JimboNFS";
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Documents" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Documents";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Photos" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Photos";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Videos/Random" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Videos/Random";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Videos/Media" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Videos/Media";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Music/Synced" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Music/Synced";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Music/Unsynced" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Music/Unsynced";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/Projects" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/Projects";
|
|
||||||
fsType = "nfs4";
|
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
||||||
};
|
|
||||||
"/home/jimbo/JimboNFS/School" = {
|
|
||||||
device = "${config.ips.server}:/export/JimboNFS/School";
|
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
hardware.nixosModules.pine64-pinebook-pro
|
hardware.nixosModules.pine64-pinebook-pro
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "shuttleworth";
|
networking.hostName = "shuttle";
|
||||||
hardware.opengl.driSupport32Bit = lib.mkForce false;
|
hardware.opengl.driSupport32Bit = lib.mkForce false;
|
||||||
networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.17/24" ];
|
networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.17/24" ];
|
||||||
}
|
}
|
||||||
|
|
25
hosts/treefruit/home/default.nix
Normal file
25
hosts/treefruit/home/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, nur, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Apps and programs
|
||||||
|
../../../modules/home
|
||||||
|
../../../modules/home/users
|
||||||
|
../../../modules/home/files
|
||||||
|
../../../modules/home/settings
|
||||||
|
../../../modules/home/programs
|
||||||
|
../../../modules/home/programs/misc/production
|
||||||
|
../../../modules/home/programs/misc/gaming/launchers
|
||||||
|
../../../modules/home/programs/misc/gaming/xash3d
|
||||||
|
../../../modules/home/programs/misc/remote-desktop
|
||||||
|
../../../modules/home/sway
|
||||||
|
../../../modules/home/utils
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
../../../overlays
|
||||||
|
../../../variables
|
||||||
|
../../../variables/look/colors/green
|
||||||
|
|
||||||
|
# Imports
|
||||||
|
nur.nixosModules.nur
|
||||||
|
];
|
||||||
|
}
|
1
hosts/treefruit/id_ed25519.pub
Normal file
1
hosts/treefruit/id_ed25519.pub
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAzAyY6bLK/pOlijVOZjw3ikdIaOuCC1yQjxL922bON7 jimbo@treefruit
|
17
hosts/treefruit/system/boot/default.nix
Normal file
17
hosts/treefruit/system/boot/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
kernel.sysctl."vm.max_map_count" = 2147483642;
|
||||||
|
initrd = {
|
||||||
|
systemd.enable = true;
|
||||||
|
luks.devices = {
|
||||||
|
crypt-mmc = {
|
||||||
|
device = "/dev/disk/by-uuid/5bc11b61-e4dc-465c-b87a-533955cf6177";
|
||||||
|
preLVM = true;
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
31
hosts/treefruit/system/default.nix
Normal file
31
hosts/treefruit/system/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, hardware, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware
|
||||||
|
./boot
|
||||||
|
|
||||||
|
# Apps and programs
|
||||||
|
../../../modules/system
|
||||||
|
../../../modules/system/accounts
|
||||||
|
../../../modules/system/desktop
|
||||||
|
../../../modules/system/programs
|
||||||
|
../../../modules/system/services
|
||||||
|
|
||||||
|
# Devices and hardware
|
||||||
|
../../../modules/system/devices
|
||||||
|
../../../modules/system/devices/boot/systemd
|
||||||
|
../../../modules/system/devices/networking/wireless
|
||||||
|
../../../modules/system/devices/networking/firewall/pc
|
||||||
|
../../../modules/system/devices/networking/wireguard/pc
|
||||||
|
|
||||||
|
# Extras
|
||||||
|
../../../overlays
|
||||||
|
../../../variables
|
||||||
|
|
||||||
|
# Imports
|
||||||
|
hardware.nixosModules.apple-macbook-pro-14-1
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "treefruit";
|
||||||
|
networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.21/24" ];
|
||||||
|
}
|
63
hosts/treefruit/system/hardware/default.nix
Normal file
63
hosts/treefruit/system/hardware/default.nix
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
kernelModules = [ "kvm-intel" ];
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
kernelModules = [ "dm-snapshot" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@" ];
|
||||||
|
};
|
||||||
|
"/home" = {
|
||||||
|
device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@home" ];
|
||||||
|
};
|
||||||
|
"/nix" = {
|
||||||
|
device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@nix" ];
|
||||||
|
};
|
||||||
|
"/var" = {
|
||||||
|
device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@var" ];
|
||||||
|
};
|
||||||
|
"/.snapshots" = {
|
||||||
|
device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@snapshots" ];
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/7B59-F17A";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Remote
|
||||||
|
"/home/jimbo/JimboNFS" = {
|
||||||
|
device = "${config.ips.wgSpan}.1:/export/JimboNFS";
|
||||||
|
fsType = "nfs4";
|
||||||
|
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/25b5e281-f1be-49ca-991e-b340fed3e5da"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
|
@ -294,7 +294,7 @@ in {
|
||||||
sponsorblock
|
sponsorblock
|
||||||
return-youtube-dislikes
|
return-youtube-dislikes
|
||||||
simple-tab-groups
|
simple-tab-groups
|
||||||
no-pdf-download
|
vimium
|
||||||
];
|
];
|
||||||
commonSearch = {
|
commonSearch = {
|
||||||
force = true;
|
force = true;
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'";
|
exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'";
|
||||||
exec = pkgs.writeScript "mpvMetadata" ''
|
exec = pkgs.writeScript "mpvMetadata" ''
|
||||||
get_metadata() {
|
get_metadata() {
|
||||||
mpc --format "%file%" | head -n 1 | sed -E 's/\.(mp3|mp4|m4a|mov|flac|opus|oga)$//; s/&/&/g'
|
mpc | head -n 1
|
||||||
}
|
}
|
||||||
|
|
||||||
truncate_string() {
|
truncate_string() {
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
spotdl = "spotdl --m3u --format opus";
|
spotdl = "spotdl --m3u --format opus";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||||
${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin; pfetch
|
${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin; pfetch
|
||||||
setopt HIST_IGNORE_SPACE
|
setopt HIST_IGNORE_SPACE
|
||||||
setopt RM_STAR_WAIT
|
setopt RM_STAR_WAIT
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
(builtins.readFile ../../../../../hosts/shuttleworth/id_ed25519.pub)
|
(builtins.readFile ../../../../../hosts/shuttleworth/id_ed25519.pub)
|
||||||
(builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub)
|
(builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub)
|
||||||
(builtins.readFile ../../../../../hosts/redmond/id_ed25519.pub)
|
(builtins.readFile ../../../../../hosts/redmond/id_ed25519.pub)
|
||||||
|
(builtins.readFile ../../../../../hosts/treefruit/id_ed25519.pub)
|
||||||
|
|
||||||
(builtins.readFile ../../../../../hosts/cyberspark/id_ed25519.pub)
|
(builtins.readFile ../../../../../hosts/cyberspark/id_ed25519.pub)
|
||||||
(builtins.readFile ../../../../../hosts/bomberman/id_ed25519.pub)
|
(builtins.readFile ../../../../../hosts/bomberman/id_ed25519.pub)
|
||||||
|
|
|
@ -7,21 +7,40 @@
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
capslock = "overload(control,esc)";
|
capslock = "overload(control,esc)";
|
||||||
esc = "capslock";
|
leftcontrol = "overload(ctrlmod,noop)";
|
||||||
|
|
||||||
|
esc = "`";
|
||||||
rightcontrol = "esc";
|
rightcontrol = "esc";
|
||||||
leftcontrol = "noop";
|
|
||||||
left = "noop";
|
left = "noop";
|
||||||
down = "noop";
|
down = "noop";
|
||||||
up = "noop";
|
up = "noop";
|
||||||
right = "noop";
|
right = "noop";
|
||||||
};
|
};
|
||||||
|
|
||||||
control = {
|
control = {
|
||||||
h = "left";
|
h = "left";
|
||||||
j = "down";
|
j = "down";
|
||||||
k = "up";
|
k = "up";
|
||||||
l = "right";
|
l = "right";
|
||||||
|
g = "macro(C-h)";
|
||||||
semicolon = "macro(C-l)";
|
semicolon = "macro(C-l)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ctrlmod = {
|
||||||
|
backspace = "delete";
|
||||||
|
"1" = "f1";
|
||||||
|
"2" = "f2";
|
||||||
|
"3" = "f3";
|
||||||
|
"4" = "f4";
|
||||||
|
"5" = "f5";
|
||||||
|
"6" = "f6";
|
||||||
|
"7" = "f7";
|
||||||
|
"8" = "f8";
|
||||||
|
"9" = "f9";
|
||||||
|
"0" = "f10";
|
||||||
|
"-" = "f11";
|
||||||
|
"=" = "f12";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nginx
|
./nginx
|
||||||
./rtmp
|
|
||||||
./virtualhosts
|
./virtualhosts
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./jimDomain
|
./jimDomain1
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nginx.serviceConfig = {
|
|
||||||
ReadWritePaths = [ "/var/www/Jimbo-Landing-Page/streams/hls/" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue