Compare commits
20 Commits
9a2e2f8e5f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
2358de9037
|
|||
|
10778b2d85
|
|||
|
1f596f832f
|
|||
|
b23ad485c9
|
|||
|
1914dcd527
|
|||
|
50d19660d6
|
|||
|
2ca3bb5277
|
|||
|
14af2478e7
|
|||
|
eb21f28aec
|
|||
|
ffca94ea16
|
|||
|
d11a98e0e4
|
|||
|
9167ad2b6d
|
|||
|
8438ba2934
|
|||
|
9ad1b9e275
|
|||
|
39b664ed33
|
|||
|
78a2e5bac8
|
|||
|
58d759f6fc
|
|||
|
4dac10e2a1
|
|||
|
0ea327729a
|
|||
|
7d7d4bc9e6
|
6
Makefile
6
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,7 +48,7 @@ unlink:
|
|||||||
echo "/etc/nixos is not a symlink"; \
|
echo "/etc/nixos is not a symlink"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rebuild:
|
build:
|
||||||
@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
|
||||||
|
|||||||
31
flake.lock
generated
31
flake.lock
generated
@@ -52,11 +52,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771744638,
|
"lastModified": 1772302941,
|
||||||
"narHash": "sha256-EDLi+YAsEEAmMeZe1v6GccuGRbCkpSZp/+A6g+pivR8=",
|
"narHash": "sha256-TL3+ckbOTILXrR0qSK3dJj2BJ0S5yz/YSsUF1oEgd9g=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "cb6c151f5c9db4df0b69d06894dc8484de1f16a0",
|
"rev": "9b9142b5fe214c2adabe86257c33e022372b7c96",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -68,11 +68,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771714954,
|
"lastModified": 1772047000,
|
||||||
"narHash": "sha256-nhZJPnBavtu40/L2aqpljrfUNb2rxmWTmSjK2c9UKds=",
|
"narHash": "sha256-7DaQVv4R97cii/Qdfy4tmDZMB2xxtyIvNGSwXBBhSmo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "afbbf774e2087c3d734266c22f96fca2e78d3620",
|
"rev": "1267bb4920d0fc06ea916734c11b0bf004bbe17e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -82,11 +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",
|
"cosmic-manager": "cosmic-manager",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
11
flake.nix
11
flake.nix
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
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";
|
||||||
@@ -16,15 +18,22 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, cosmic-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
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -12,6 +12,25 @@
|
|||||||
wireplumber.enable = true;
|
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
|
# DeepFilterNet noise reduction filter chain
|
||||||
services.pipewire.extraConfig.pipewire."99-deepfilter-source" = {
|
services.pipewire.extraConfig.pipewire."99-deepfilter-source" = {
|
||||||
"context.modules" = [
|
"context.modules" = [
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.desktopManager.cosmic.enable = true;
|
services.xserver.enable = true;
|
||||||
services.displayManager.cosmic-greeter.enable = true;
|
|
||||||
|
services.desktopManager.gnome.enable = true;
|
||||||
|
services.displayManager.gdm.enable = true;
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
epiphany
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,12 +7,11 @@ let
|
|||||||
./home/session.nix
|
./home/session.nix
|
||||||
./home/packages.nix
|
./home/packages.nix
|
||||||
./home/git.nix
|
./home/git.nix
|
||||||
./home/cosmic.nix
|
./home/gnome.nix
|
||||||
./home/cli.nix
|
./home/cli.nix
|
||||||
./home/librewolf.nix
|
./home/librewolf.nix
|
||||||
./home/zed.nix
|
./home/zed.nix
|
||||||
./home/ghostty.nix
|
./home/ghostty.nix
|
||||||
./home/syncthing.nix
|
|
||||||
./home/ssh.nix
|
./home/ssh.nix
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
# Nix Commands
|
# 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:update" = "cd /etc/nixos && nix flake update && sudo nixos-rebuild switch --flake .";
|
||||||
"nix:purge" =
|
"nix:purge" =
|
||||||
"sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
"sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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" = {
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
Remove = [
|
Remove = [
|
||||||
"Google"
|
"Google"
|
||||||
"Bing"
|
"Bing"
|
||||||
"DuckDuckGo"
|
|
||||||
"Perplexity"
|
"Perplexity"
|
||||||
"Wikipedia (en)"
|
"Wikipedia (en)"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
pavucontrol
|
pavucontrol
|
||||||
texliveFull
|
texliveFull
|
||||||
texlab
|
texlab
|
||||||
|
nil
|
||||||
|
nixd
|
||||||
|
|
||||||
# CLI
|
# CLI
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
@@ -24,7 +26,6 @@
|
|||||||
streamrip
|
streamrip
|
||||||
cider-2
|
cider-2
|
||||||
zotero
|
zotero
|
||||||
modrinth-app
|
|
||||||
lrcget
|
lrcget
|
||||||
impression
|
impression
|
||||||
streamcontroller
|
streamcontroller
|
||||||
@@ -34,7 +35,8 @@
|
|||||||
discord
|
discord
|
||||||
signal-desktop
|
signal-desktop
|
||||||
element-desktop
|
element-desktop
|
||||||
fastmail-desktop
|
unstable.fastmail-desktop
|
||||||
|
supersonic
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.obs-studio.enable = true;
|
programs.obs-studio.enable = true;
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user