consolidating desktop and thinkpad config
This commit is contained in:
@@ -40,12 +40,12 @@
|
||||
|
||||
outputs = { nixpkgs, home-manager, sops-nix, niri, dms, dms-plugin-registry, danksearch, wvkbd-src, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
thinkpad = nixpkgs.lib.nixosSystem {
|
||||
violet = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
./hosts/thinkpad/default.nix
|
||||
./hosts/violet/default.nix
|
||||
|
||||
niri.nixosModules.niri
|
||||
dms-plugin-registry.nixosModules.default
|
||||
@@ -67,6 +67,31 @@
|
||||
];
|
||||
};
|
||||
|
||||
lavender = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
./hosts/lavender/default.nix
|
||||
|
||||
niri.nixosModules.niri
|
||||
dms-plugin-registry.nixosModules.default
|
||||
sops-nix.nixosModules.sops
|
||||
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
|
||||
home-manager.users.jashton = {
|
||||
imports = [
|
||||
./home/jashton.nix
|
||||
danksearch.homeModules.default
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -95,22 +95,6 @@ in
|
||||
draw-border-with-background = true;
|
||||
clip-to-geometry = true;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "google-chrome";
|
||||
title = "^Picture-in-Picture$";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
default-column-width = { fixed = 480; };
|
||||
default-window-height = { fixed = 270; };
|
||||
default-floating-position = {
|
||||
x = 32;
|
||||
y = 32;
|
||||
relative-to = "bottom-left";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
# Vim Keybindings & Built-in Features
|
||||
|
||||
@@ -40,24 +40,17 @@ in
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
aider-chat
|
||||
animdl
|
||||
antigravity
|
||||
asciinema
|
||||
discord
|
||||
ffmpeg
|
||||
freetube
|
||||
gemini-cli
|
||||
intelli-shell
|
||||
jrnl
|
||||
libreoffice
|
||||
mc
|
||||
opencode
|
||||
pdftk
|
||||
scrot
|
||||
steam
|
||||
spotify
|
||||
tailscale
|
||||
vlc
|
||||
wtype
|
||||
xwayland-satellite
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
../../system
|
||||
];
|
||||
|
||||
networking.hostName = "violet";
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
# 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.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2fc352b4-3b86-4282-9eb8-0bcaf6d48cd1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/0CB6-7449";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/8f8fdc73-d963-4665-b7e4-28eb43958ebe"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
../../system/security/thinkpad.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nix-pad";
|
||||
networking.hostName = "lavender";
|
||||
|
||||
services.power-profiles-daemon.enable = false;
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelModules = [ "uinput" ];
|
||||
system.nixos.label = "niri-v.1.1";
|
||||
system.nixos.label = "niri-v.1.2";
|
||||
environment.pathsToLink = [ "/libexec" ];
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
ehome = "nvim $HOME/.dotfiles/home/jashton.nix";
|
||||
l = "ls -la";
|
||||
ports = "cat $HOME/.dotfiles/ports.registry";
|
||||
accentum = "bluetoothctl connect 80:C3:BA:50:43:DF";
|
||||
};
|
||||
|
||||
ohMyZsh = {
|
||||
@@ -43,12 +42,5 @@
|
||||
"git"
|
||||
];
|
||||
};
|
||||
|
||||
interactiveShellInit = ''
|
||||
if [ -f "/run/secrets/vaultwarden_clientid" ]; then
|
||||
export BW_CLIENTID=$(cat /run/secrets/vaultwarden_clientid)
|
||||
export BW_CLIENTSECRET=$(cat /run/secrets/vaultwarden_clientsecret)
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
+15
-7
@@ -28,9 +28,7 @@
|
||||
networkmanagerapplet
|
||||
nitrogen
|
||||
ollama
|
||||
(pass.withExtensions (exts: [ exts.pass-import ]))
|
||||
pasystray
|
||||
picom
|
||||
pulseaudioFull
|
||||
rnote
|
||||
sops
|
||||
@@ -52,10 +50,11 @@
|
||||
|
||||
DOTFILES="$HOME/.dotfiles"
|
||||
ERRFILE=$(mktemp)
|
||||
HOST=$(cat /etc/hostname)
|
||||
trap "rm -f '$ERRFILE'" EXIT
|
||||
|
||||
echo "Building NixOS..."
|
||||
sudo nixos-rebuild switch --flake "$DOTFILES#thinkpad" 2>&1 | tee "$ERRFILE"
|
||||
sudo nixos-rebuild switch --flake "$DOTFILES#$HOST" 2>&1 | tee "$ERRFILE"
|
||||
STATUS=''${PIPESTATUS[0]}
|
||||
|
||||
if [ "$STATUS" -ne 0 ]; then
|
||||
@@ -82,14 +81,23 @@
|
||||
read -r msg_to_append
|
||||
|
||||
${pkgs.git}/bin/git add -A
|
||||
${pkgs.git}/bin/git commit -m "nixos: gen $GEN @ $(hostname) — $TIMESTAMP
|
||||
$VER
|
||||
|
||||
$msg_to_append"
|
||||
${pkgs.git}/bin/git commit -m "nixos: gen $GEN @ $(hostname) — $TIMESTAMP $VER ----- $msg_to_append"
|
||||
${pkgs.git}/bin/git push
|
||||
'')
|
||||
];
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.thunar.enable = true;
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user