Compare commits
53 Commits
40343553ee
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
2358de9037
|
|||
|
10778b2d85
|
|||
|
1f596f832f
|
|||
|
b23ad485c9
|
|||
|
1914dcd527
|
|||
|
50d19660d6
|
|||
|
2ca3bb5277
|
|||
|
14af2478e7
|
|||
|
eb21f28aec
|
|||
|
ffca94ea16
|
|||
|
d11a98e0e4
|
|||
|
9167ad2b6d
|
|||
|
8438ba2934
|
|||
|
9ad1b9e275
|
|||
|
39b664ed33
|
|||
|
78a2e5bac8
|
|||
|
58d759f6fc
|
|||
|
4dac10e2a1
|
|||
|
0ea327729a
|
|||
|
7d7d4bc9e6
|
|||
|
9a2e2f8e5f
|
|||
|
0e305c226b
|
|||
|
432d5df195
|
|||
|
8ef20405ba
|
|||
| 4d584b351a | |||
| 2c7f4e5de6 | |||
| bd65374258 | |||
| 9f5fdfff1a | |||
|
d248862921
|
|||
|
eb69a1f4e6
|
|||
|
676a7c1151
|
|||
|
4c8579a5c0
|
|||
|
01e412a41b
|
|||
|
bc2dacc391
|
|||
|
c03cd11a12
|
|||
|
d0fec282af
|
|||
|
bde0172955
|
|||
|
fa4023731a
|
|||
|
d7ce4f69cc
|
|||
|
c6dd3ccfb8
|
|||
|
480fe8173f
|
|||
|
960a63e48c
|
|||
|
4dfee51548
|
|||
|
ff3e9ef40d
|
|||
|
f1c4902466
|
|||
|
2a922d572e
|
|||
|
b899ae7f20
|
|||
|
a3607a87a3
|
|||
|
3a83ffaaa2
|
|||
|
b482da2727
|
|||
|
86e81e89d3
|
|||
|
938b320009
|
|||
|
c3ff2decad
|
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: init install link unlink rebuild update purge edit hw help
|
.PHONY: init install link unlink build update purge edit hw help
|
||||||
|
|
||||||
NIXOS_DIR := /etc/nixos
|
NIXOS_DIR := /etc/nixos
|
||||||
REPO_DIR := $(shell pwd)
|
REPO_DIR := $(shell pwd)
|
||||||
@@ -16,7 +16,7 @@ help:
|
|||||||
@echo ""
|
@echo ""
|
||||||
@echo " make init - first time setup"
|
@echo " make init - first time setup"
|
||||||
@echo " make hw - generate hardware-configuration.nix"
|
@echo " make hw - generate hardware-configuration.nix"
|
||||||
@echo " make rebuild - rebuild nixos configuration"
|
@echo " make build - build nixos configuration"
|
||||||
@echo " make update - update flake inputs and rebuild"
|
@echo " make update - update flake inputs and rebuild"
|
||||||
@echo " make purge - garbage collect"
|
@echo " make purge - garbage collect"
|
||||||
@echo " make link - symlink to /etc/nixos"
|
@echo " make link - symlink to /etc/nixos"
|
||||||
@@ -48,8 +48,7 @@ unlink:
|
|||||||
echo "/etc/nixos is not a symlink"; \
|
echo "/etc/nixos is not a symlink"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rebuild:
|
build:
|
||||||
@# Ensure hardware-configuration.nix is tracked by git (flake requirement), even if ignored
|
|
||||||
@if [ -f hardware-configuration.nix ]; then \
|
@if [ -f hardware-configuration.nix ]; then \
|
||||||
git add -f -N hardware-configuration.nix; \
|
git add -f -N hardware-configuration.nix; \
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Lavitz - My personal NixOS config named after Lavitz from the PS1 classic The Legend of Dragoon
|
# Lavitz - My NixOS desktop configuration named after Lavitz from the PS1 classic The Legend of Dragoon
|
||||||
|
|
||||||
- Nix Version: 25.11
|
- Nix Version: 25.11
|
||||||
- DE: Gnome
|
- DE: Gnome
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 229 KiB |
@@ -16,7 +16,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# xdg.portal.config.common.default = [ "gnome" ];
|
# xdg.portal.config.common.default = [ "cosmic" ];
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -17,8 +17,10 @@
|
|||||||
./modules/home.nix
|
./modules/home.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [
|
||||||
# xdg.portal.config.common.default = [ "gnome" ];
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
77
flake.lock
generated
77
flake.lock
generated
@@ -1,5 +1,50 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"cosmic-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1765831383,
|
||||||
|
"narHash": "sha256-P5F/VPjjGw7s0AOTPb3z3gxqtH0YkAnd/c9P6QdWrEU=",
|
||||||
|
"owner": "HeitorAugustoLN",
|
||||||
|
"repo": "cosmic-manager",
|
||||||
|
"rev": "819d4d21fb90460dd11416d81d2cff65a53b8a59",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "HeitorAugustoLN",
|
||||||
|
"repo": "cosmic-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"cosmic-manager",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1759362264,
|
||||||
|
"narHash": "sha256-wfG0S7pltlYyZTM+qqlhJ7GMw2fTF4mLKCIVhLii/4M=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "758cf7296bee11f1706a574c77d072b8a7baa881",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -7,11 +52,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769580047,
|
"lastModified": 1772302941,
|
||||||
"narHash": "sha256-tNqCP/+2+peAXXQ2V8RwsBkenlfWMERb+Uy6xmevyhM=",
|
"narHash": "sha256-TL3+ckbOTILXrR0qSK3dJj2BJ0S5yz/YSsUF1oEgd9g=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "366d78c2856de6ab3411c15c1cb4fb4c2bf5c826",
|
"rev": "9b9142b5fe214c2adabe86257c33e022372b7c96",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -23,11 +68,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770136044,
|
"lastModified": 1772047000,
|
||||||
"narHash": "sha256-tlFqNG/uzz2++aAmn4v8J0vAkV3z7XngeIIB3rM3650=",
|
"narHash": "sha256-7DaQVv4R97cii/Qdfy4tmDZMB2xxtyIvNGSwXBBhSmo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e576e3c9cf9bad747afcddd9e34f51d18c855b4e",
|
"rev": "1267bb4920d0fc06ea916734c11b0bf004bbe17e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -37,10 +82,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771848320,
|
||||||
|
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"cosmic-manager": "cosmic-manager",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
20
flake.nix
20
flake.nix
@@ -1,23 +1,39 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS Configuration";
|
description = "Lavitz Configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
cosmic-manager = {
|
||||||
|
url = "github:HeitorAugustoLN/cosmic-manager";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
home-manager.follows = "home-manager";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
|
||||||
let
|
let
|
||||||
settings = import ./settings.nix;
|
settings = import ./settings.nix;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
overlay-unstable = final: prev: {
|
||||||
|
unstable = import nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
@@ -12,22 +12,23 @@
|
|||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Main Pipewire graph configuration
|
# Elgato makes shit products and they should feel bad :c
|
||||||
services.pipewire.extraConfig.pipewire."92-low-latency" = {
|
services.pipewire.wireplumber.extraConfig."51-wave3" = {
|
||||||
"context.properties" = {
|
"monitor.alsa.rules" = [
|
||||||
"default.clock.rate" = 48000;
|
{
|
||||||
"default.clock.quantum" = 1024;
|
matches = [
|
||||||
"default.clock.min-quantum" = 32;
|
{
|
||||||
"default.clock.max-quantum" = 8192;
|
"node.name" = "~alsa_input.usb-Elgato_Systems_Elgato_Wave_3.*";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
"session.suspend-timeout-seconds" = 0;
|
||||||
|
"node.pause-on-idle" = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
# PulseAudio protocol specific tweaks (Crucial for Steam/Proton)
|
];
|
||||||
services.pipewire.extraConfig.pipewire-pulse."92-pulse-tweaks" = {
|
|
||||||
"pulse.properties" = {
|
|
||||||
"pulse.min.req" = "1024/48000";
|
|
||||||
"pulse.min.quantum" = "1024/48000";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# DeepFilterNet noise reduction filter chain
|
# DeepFilterNet noise reduction filter chain
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.loader.systemd-boot = {
|
boot.loader.systemd-boot = {
|
||||||
@@ -8,10 +8,15 @@
|
|||||||
};
|
};
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
boot.consoleLogLevel = 3;
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.kernelModules = [ "tcp_bbr" ];
|
boot.kernelModules = [ "tcp_bbr" ];
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
boot.kernelParams = [ "preempt=full" ];
|
boot.kernelParams = [
|
||||||
|
"preempt=full"
|
||||||
|
"quiet"
|
||||||
|
"udev.log_priority=3"
|
||||||
|
];
|
||||||
|
|
||||||
boot.tmp.useTmpfs = true;
|
boot.tmp.useTmpfs = true;
|
||||||
boot.tmp.tmpfsSize = "4G";
|
boot.tmp.tmpfsSize = "4G";
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.displayManager.gdm.enable = true;
|
services.xserver.enable = true;
|
||||||
services.desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
environment.gnome.excludePackages = with pkgs; [ gnome-tour gnome-user-docs gnome-console epiphany ];
|
services.desktopManager.gnome.enable = true;
|
||||||
|
services.displayManager.gdm.enable = true;
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
epiphany
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{ config, pkgs, ... }:
|
{ inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
homeModules = [
|
homeModules = [
|
||||||
|
inputs.cosmic-manager.homeManagerModules.cosmic-manager
|
||||||
./home/session.nix
|
./home/session.nix
|
||||||
./home/packages.nix
|
./home/packages.nix
|
||||||
./home/git.nix
|
./home/git.nix
|
||||||
@@ -11,7 +12,7 @@ let
|
|||||||
./home/librewolf.nix
|
./home/librewolf.nix
|
||||||
./home/zed.nix
|
./home/zed.nix
|
||||||
./home/ghostty.nix
|
./home/ghostty.nix
|
||||||
./home/syncthing.nix
|
./home/ssh.nix
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -24,8 +25,13 @@ in
|
|||||||
inherit settings;
|
inherit settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${settings.username} = { ... }: {
|
home-manager.users.${settings.username} =
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
imports = homeModules;
|
imports = homeModules;
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
|
home.sessionVariables = {
|
||||||
|
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
# Nix Commands
|
# Nix Commands
|
||||||
"nix:rebuild" = "sudo nixos-rebuild switch";
|
"nix:build" = "sudo nixos-rebuild switch --flake /etc/nixos";
|
||||||
"nix:update" = "sudo nixos-rebuild switch --upgrade";
|
"nix:update" = "cd /etc/nixos && nix flake update && sudo nixos-rebuild switch --flake .";
|
||||||
"nix:purge" = "sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
"nix:purge" =
|
||||||
|
"sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||||
"nix:edit" = "$EDITOR /etc/nixos";
|
"nix:edit" = "$EDITOR /etc/nixos";
|
||||||
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
|
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
|
||||||
"nix:pull" = "cd /etc/nixos && git pull";
|
"nix:pull" = "cd /etc/nixos && git pull";
|
||||||
"nix:hw" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
|
"nix:hw" =
|
||||||
|
"sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
|
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
accent-color = "pink";
|
accent-color = "pink";
|
||||||
clock-show-weekday = true;
|
clock-show-weekday = true;
|
||||||
|
clock-show-date = true;
|
||||||
|
clock-format = "12h";
|
||||||
};
|
};
|
||||||
|
|
||||||
"org/gnome/system/location" = {
|
"org/gnome/system/location" = {
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
DisableFirefoxStudies = true;
|
DisableFirefoxStudies = true;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
DisableFirefoxAccounts = true;
|
DisableFirefoxAccounts = true;
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
EnableTrackingProtection = true;
|
||||||
|
|
||||||
FirefoxHome = {
|
FirefoxHome = {
|
||||||
Search = true;
|
Search = true;
|
||||||
@@ -23,12 +25,41 @@
|
|||||||
SanitizeOnShutdown = {
|
SanitizeOnShutdown = {
|
||||||
Cache = true;
|
Cache = true;
|
||||||
Cookies = false;
|
Cookies = false;
|
||||||
History = true;
|
History = false;
|
||||||
Sessions = true;
|
Sessions = true;
|
||||||
SiteSettings = false;
|
SiteSettings = false;
|
||||||
OfflineApps = true;
|
OfflineApps = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SearchEngines = {
|
||||||
|
Default = "Searx Search";
|
||||||
|
Remove = [
|
||||||
|
"Google"
|
||||||
|
"Bing"
|
||||||
|
"Perplexity"
|
||||||
|
"Wikipedia (en)"
|
||||||
|
];
|
||||||
|
Add = [
|
||||||
|
{
|
||||||
|
Name = "Searx Search";
|
||||||
|
URLTemplate = "https://search.atri.dad/search?q={searchTerms}";
|
||||||
|
Method = "GET";
|
||||||
|
IconURL = "https://search.atri.dad/favicon.ico";
|
||||||
|
Alias = "searx";
|
||||||
|
Description = "Searx (search.atri.dad)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Name = "DuckDuckGo";
|
||||||
|
URLTemplate = "https://duckduckgo.com/?q={searchTerms}";
|
||||||
|
SuggestURLTemplate = "https://duckduckgo.com/ac/?q={searchTerms}&type=list";
|
||||||
|
Method = "GET";
|
||||||
|
IconURL = "https://duckduckgo.com/favicon.ico";
|
||||||
|
Alias = "ddg";
|
||||||
|
Description = "DuckDuckGo";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
ExtensionSettings = {
|
ExtensionSettings = {
|
||||||
# Bitwarden
|
# Bitwarden
|
||||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||||
@@ -47,28 +78,46 @@
|
|||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||||
installation_mode = "force_installed";
|
installation_mode = "force_installed";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Catppuccin Theme
|
|
||||||
"{15cb5e64-94bd-41aa-91cf-751bb1a84972}" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-macchiato-lavender2/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Preferences = {
|
Preferences = {
|
||||||
"browser.startup.homepage" = "about:home";
|
"browser.startup.homepage" = "about:home";
|
||||||
"extensions.autoDisableScopes" = 0;
|
"extensions.autoDisableScopes" = 0;
|
||||||
|
|
||||||
"browser.toolbars.bookmarks.visibility" = "always";
|
"browser.toolbars.bookmarks.visibility" = "always";
|
||||||
|
|
||||||
"network.cookie.cookieBehavior" = 1;
|
"network.cookie.cookieBehavior" = 1;
|
||||||
"privacy.clearOnShutdown.cookies" = false;
|
"browser.safebrowsing.malware.enabled" = false;
|
||||||
"privacy.clearOnShutdown.history" = false;
|
"browser.safebrowsing.phishing.enabled" = false;
|
||||||
|
"browser.safebrowsing.blockedURIs.enabled" = false;
|
||||||
|
"browser.safebrowsing.downloads.enabled" = false;
|
||||||
|
"browser.safebrowsing.provider.google4.gethashURL" = "";
|
||||||
|
"browser.safebrowsing.provider.google4.updateURL" = "";
|
||||||
|
"browser.safebrowsing.provider.google.gethashURL" = "";
|
||||||
|
"browser.safebrowsing.provider.google.updateURL" = "";
|
||||||
|
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "dark-mountain";
|
||||||
|
|
||||||
|
"extensions.activeThemeID" = {
|
||||||
|
Value = "firefox-alpenglow@mozilla.org";
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
|
||||||
|
"privacy.resistFingerprinting" = {
|
||||||
|
Value = true;
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
|
||||||
|
"browser.ml.chat.enabled" = {
|
||||||
|
Value = false;
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
"browser.ml.chat.sidebar" = {
|
||||||
|
Value = false;
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
"browser.tabs.groups.smart.userEnabled" = {
|
||||||
|
Value = false;
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
|
||||||
"sidebar.revamp" = true;
|
|
||||||
"sidebar.verticalTabs" = true;
|
|
||||||
"sidebar.main.tools" = "bookmarks,history,tabs";
|
|
||||||
"sidebar.visibility" = "always";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Browsers and comms
|
|
||||||
discord
|
|
||||||
signal-desktop
|
|
||||||
|
|
||||||
# Development tools
|
# Development tools
|
||||||
gnumake
|
gnumake
|
||||||
openssh
|
openssh
|
||||||
@@ -17,6 +13,12 @@
|
|||||||
pavucontrol
|
pavucontrol
|
||||||
texliveFull
|
texliveFull
|
||||||
texlab
|
texlab
|
||||||
|
nil
|
||||||
|
nixd
|
||||||
|
|
||||||
|
# CLI
|
||||||
|
bitwarden-cli
|
||||||
|
tea
|
||||||
|
|
||||||
# Desktop applications
|
# Desktop applications
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
@@ -24,16 +26,17 @@
|
|||||||
streamrip
|
streamrip
|
||||||
cider-2
|
cider-2
|
||||||
zotero
|
zotero
|
||||||
prismlauncher
|
|
||||||
lrcget
|
lrcget
|
||||||
impression
|
impression
|
||||||
streamcontroller
|
streamcontroller
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
|
gnome-keyring
|
||||||
pinta
|
pinta
|
||||||
|
discord
|
||||||
# GNOME Extensions
|
signal-desktop
|
||||||
gnomeExtensions.appindicator
|
element-desktop
|
||||||
gnomeExtensions.gamemode-shell-extension
|
unstable.fastmail-desktop
|
||||||
|
supersonic
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.obs-studio.enable = true;
|
programs.obs-studio.enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file."Assets" = {
|
home.file."Assets" = {
|
||||||
@@ -6,8 +6,7 @@
|
|||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
BROWSER = "librewolf";
|
BROWSER = "librewolf";
|
||||||
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
34
modules/home/ssh.nix
Normal file
34
modules/home/ssh.nix
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
enableDefaultConfig = false;
|
||||||
|
matchBlocks = {
|
||||||
|
"*" = {
|
||||||
|
identityAgent = "~/.bitwarden-ssh-agent.sock";
|
||||||
|
};
|
||||||
|
"localhost" = {
|
||||||
|
extraOptions.UserKnownHostsFile = "/dev/null";
|
||||||
|
};
|
||||||
|
"tux" = {
|
||||||
|
hostname = "tuxworld.usask.ca";
|
||||||
|
user = "atl175";
|
||||||
|
};
|
||||||
|
"haschel" = {
|
||||||
|
hostname = "haschel";
|
||||||
|
user = "fedora";
|
||||||
|
};
|
||||||
|
"lloyd" = {
|
||||||
|
hostname = "lloyd";
|
||||||
|
user = "truenas_admin";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = ''
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Hidden=true
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
@@ -44,7 +44,10 @@
|
|||||||
|
|
||||||
languages = {
|
languages = {
|
||||||
"Nix" = {
|
"Nix" = {
|
||||||
language_servers = [ "nil" "nixd" ];
|
language_servers = [
|
||||||
|
"nil"
|
||||||
|
"nixd"
|
||||||
|
];
|
||||||
format_on_save = "on";
|
format_on_save = "on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
@@ -17,19 +17,27 @@ in
|
|||||||
# Allowed ports
|
# Allowed ports
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
# SyncThing
|
# SyncThing
|
||||||
8384 22000
|
8384
|
||||||
|
22000
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
|
|
||||||
# SyncThing
|
# SyncThing
|
||||||
22000 21027
|
22000
|
||||||
|
21027
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
networking.nameservers = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"9.9.9.9"
|
||||||
|
];
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dnsovertls = "opportunistic";
|
dnsovertls = "opportunistic";
|
||||||
fallbackDns = [ "1.0.0.1" "149.112.112.112" ];
|
fallbackDns = [
|
||||||
|
"1.0.0.1"
|
||||||
|
"149.112.112.112"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable unfree globally
|
# Enable unfree globally
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
settings = import ../settings.nix;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# Hardened OpenSSH
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [ 22 ];
|
ports = [ 22 ];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
|
|||||||
Reference in New Issue
Block a user