Compare commits

..

22 Commits

Author SHA1 Message Date
2358de9037 Update Makefile 2026-03-04 09:38:06 -07:00
10778b2d85 Renamed rebuild to build 2026-03-04 09:36:17 -07:00
1f596f832f Added supersonic 2026-03-02 17:49:45 -07:00
b23ad485c9 1772314653 2026-02-28 14:37:33 -07:00
1914dcd527 1772314503 2026-02-28 14:35:03 -07:00
50d19660d6 1772314204 2026-02-28 14:30:04 -07:00
2ca3bb5277 1772313622 2026-02-28 14:20:22 -07:00
14af2478e7 1772313404 2026-02-28 14:16:44 -07:00
eb21f28aec 1772312646 2026-02-28 14:04:06 -07:00
ffca94ea16 1772312556 2026-02-28 14:02:36 -07:00
d11a98e0e4 1771993415 2026-02-24 21:23:35 -07:00
9167ad2b6d 1771993253 2026-02-24 21:20:53 -07:00
8438ba2934 1771993195 2026-02-24 21:19:55 -07:00
9ad1b9e275 1771992662 2026-02-24 21:11:02 -07:00
39b664ed33 1771992612 2026-02-24 21:10:12 -07:00
78a2e5bac8 Fix audio 2026-02-24 21:03:25 -07:00
58d759f6fc 1771964017 2026-02-24 13:13:37 -07:00
4dac10e2a1 1771963691 2026-02-24 13:08:11 -07:00
0ea327729a Remove syncthing 2026-02-24 00:12:44 -07:00
7d7d4bc9e6 Update librewolf.nix 2026-02-23 15:00:37 -07:00
9a2e2f8e5f Updated lockfile 2026-02-23 14:50:44 -07:00
0e305c226b Add fastmail + search engine config 2026-02-23 14:50:09 -07:00
12 changed files with 102 additions and 117 deletions

View File

@@ -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
REPO_DIR := $(shell pwd)
@@ -16,7 +16,7 @@ help:
@echo ""
@echo " make init - first time setup"
@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 purge - garbage collect"
@echo " make link - symlink to /etc/nixos"
@@ -48,7 +48,7 @@ unlink:
echo "/etc/nixos is not a symlink"; \
fi
rebuild:
build:
@if [ -f hardware-configuration.nix ]; then \
git add -f -N hardware-configuration.nix; \
fi

31
flake.lock generated
View File

@@ -52,11 +52,11 @@
]
},
"locked": {
"lastModified": 1770260404,
"narHash": "sha256-3iVX1+7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8=",
"lastModified": 1772302941,
"narHash": "sha256-TL3+ckbOTILXrR0qSK3dJj2BJ0S5yz/YSsUF1oEgd9g=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0d782ee42c86b196acff08acfbf41bb7d13eed5b",
"rev": "9b9142b5fe214c2adabe86257c33e022372b7c96",
"type": "github"
},
"original": {
@@ -68,11 +68,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1770136044,
"narHash": "sha256-tlFqNG/uzz2++aAmn4v8J0vAkV3z7XngeIIB3rM3650=",
"lastModified": 1772047000,
"narHash": "sha256-7DaQVv4R97cii/Qdfy4tmDZMB2xxtyIvNGSwXBBhSmo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e576e3c9cf9bad747afcddd9e34f51d18c855b4e",
"rev": "1267bb4920d0fc06ea916734c11b0bf004bbe17e",
"type": "github"
},
"original": {
@@ -82,11 +82,28 @@
"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": {
"inputs": {
"cosmic-manager": "cosmic-manager",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},

View File

@@ -3,6 +3,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
@@ -16,15 +18,22 @@
};
};
outputs = { self, nixpkgs, home-manager, cosmic-manager, ... }@inputs:
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
let
settings = import ./settings.nix;
system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in {
nixosConfigurations."${settings.hostname}" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./configuration.nix
home-manager.nixosModules.home-manager
];

View File

@@ -12,6 +12,25 @@
wireplumber.enable = true;
};
# Elgato makes shit products and they should feel bad :c
services.pipewire.wireplumber.extraConfig."51-wave3" = {
"monitor.alsa.rules" = [
{
matches = [
{
"node.name" = "~alsa_input.usb-Elgato_Systems_Elgato_Wave_3.*";
}
];
actions = {
update-props = {
"session.suspend-timeout-seconds" = 0;
"node.pause-on-idle" = false;
};
};
}
];
};
# DeepFilterNet noise reduction filter chain
services.pipewire.extraConfig.pipewire."99-deepfilter-source" = {
"context.modules" = [

View File

@@ -1,8 +1,14 @@
{ ... }:
{ pkgs, ... }:
{
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
services.xserver.enable = true;
services.desktopManager.gnome.enable = true;
services.displayManager.gdm.enable = true;
services.printing.enable = true;
environment.gnome.excludePackages = with pkgs; [
epiphany
];
}

View File

@@ -7,12 +7,11 @@ let
./home/session.nix
./home/packages.nix
./home/git.nix
./home/cosmic.nix
./home/gnome.nix
./home/cli.nix
./home/librewolf.nix
./home/zed.nix
./home/ghostty.nix
./home/syncthing.nix
./home/ssh.nix
];
in

View File

@@ -3,7 +3,7 @@
{
home.shellAliases = {
# Nix Commands
"nix:rebuild" = "sudo nixos-rebuild switch --flake /etc/nixos";
"nix:build" = "sudo nixos-rebuild switch --flake /etc/nixos";
"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";

View File

@@ -1,92 +0,0 @@
{ config, cosmicLib, ... }:
{
wayland.desktopManager.cosmic = {
enable = true;
appearance = {
theme = {
mode = "dark";
dark = {
# Pink accent color
accent = cosmicLib.cosmic.mkRON "optional" {
red = 0.91;
green = 0.29;
blue = 0.60;
};
};
};
toolkit = {
apply_theme_global = true;
show_maximize = true;
show_minimize = true;
icon_theme = "Cosmic";
interface_density = cosmicLib.cosmic.mkRON "enum" "Standard";
};
};
wallpapers = [
{
output = "all";
source = cosmicLib.cosmic.mkRON "enum" {
value = [ "${config.home.homeDirectory}/Assets/wallpapers/sound.png" ];
variant = "Path";
};
scaling_mode = cosmicLib.cosmic.mkRON "enum" "Zoom";
filter_method = cosmicLib.cosmic.mkRON "enum" "Lanczos";
filter_by_theme = false;
sampling_method = cosmicLib.cosmic.mkRON "enum" "Alphanumeric";
rotation_frequency = 0;
}
];
compositor = {
autotile = false;
active_hint = true;
# Flat mouse acceleration (no accel)
input_default = {
acceleration = cosmicLib.cosmic.mkRON "optional" {
profile = cosmicLib.cosmic.mkRON "optional" (cosmicLib.cosmic.mkRON "enum" "Flat");
speed = 0.0;
};
};
};
shortcuts = [
{
# Super+B -> Open browser
action = cosmicLib.cosmic.mkRON "enum" {
variant = "Spawn";
value = [ "librewolf" ];
};
key = "Super+b";
description = cosmicLib.cosmic.mkRON "optional" "Open Browser";
}
{
# Super+E -> Open file manager
action = cosmicLib.cosmic.mkRON "enum" {
variant = "Spawn";
value = [ "cosmic-files" ];
};
key = "Super+e";
description = cosmicLib.cosmic.mkRON "optional" "Open File Manager";
}
{
action = cosmicLib.cosmic.mkRON "enum" {
value = [
(cosmicLib.cosmic.mkRON "enum" "WorkspaceOverview")
];
variant = "System";
};
key = "Super";
}
];
applets.time.settings = {
show_weekday = true;
show_date_in_top_panel = true;
military_time = false;
};
};
}

View File

@@ -6,6 +6,8 @@
color-scheme = "prefer-dark";
accent-color = "pink";
clock-show-weekday = true;
clock-show-date = true;
clock-format = "12h";
};
"org/gnome/system/location" = {

View File

@@ -31,6 +31,35 @@
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 = {
# Bitwarden
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {

View File

@@ -13,6 +13,8 @@
pavucontrol
texliveFull
texlab
nil
nixd
# CLI
bitwarden-cli
@@ -24,7 +26,6 @@
streamrip
cider-2
zotero
modrinth-app
lrcget
impression
streamcontroller
@@ -34,6 +35,8 @@
discord
signal-desktop
element-desktop
unstable.fastmail-desktop
supersonic
];
programs.obs-studio.enable = true;

View File

@@ -1,7 +0,0 @@
{ ... }:
{
services.syncthing = {
enable = true;
};
}