Compare commits

...

5 Commits

Author SHA1 Message Date
b3574e2248 added network to desktop 2026-07-06 17:34:56 +01:00
17c9f87218 added gtk and hyprlock to hyprland 2026-07-06 17:34:39 +01:00
246745f2f7 added unbound vpn 2026-07-06 17:33:04 +01:00
60a5ef23ec added gtk theming 2026-07-06 17:32:52 +01:00
2d4df68db4 added a template file i can copy 2026-07-06 17:32:35 +01:00
5 changed files with 130 additions and 3 deletions

24
modules/empty.nix Normal file
View File

@@ -0,0 +1,24 @@
{
self,
inputs,
...
}: {
flake.nixosModules.name = {
pkgs,
lib,
...
}: {
programs.name = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.hello;
};
};
perSystem = {
pkgs,
lib,
self',
...
}: {
packages.hello = pkgs.hello;
};
}

View File

@@ -10,6 +10,7 @@
}: let
modules = with self.nixosModules; [
audio
gtkTheme
];
in {
imports = modules;
@@ -19,6 +20,9 @@
};
services.xserver.enable = true;
security.polkit.enable = true;
environment.systemPackages = with pkgs; [
hyprlock
];
};
perSystem = {
pkgs,
@@ -33,6 +37,7 @@
// {
wpaperd = self'.packages.wpaperd;
kitty = self'.packages.kitty;
gotify-desktop = self'.packages.gotify-desktop;
otter-launcher = self'.packages.otter-launcher;
};
};

View File

@@ -0,0 +1,15 @@
{
self,
inputs,
...
}: {
flake.nixosModules.unbound = {
pkgs,
lib,
...
}: {
services.unbound = {
enable = true;
};
};
}

View File

@@ -12,6 +12,7 @@
core
hyprland
sddm
network
];
in {
imports = modules;

View File

@@ -0,0 +1,82 @@
{
self,
inputs,
...
}: {
perSystem = {
pkgs,
system,
...
}: {
packages.catppuccinGtkMochaMauve = pkgs.catppuccin-gtk.override {
variant = "mocha";
accents = ["mauve"];
size = "standard";
tweaks = ["rimless"];
};
};
flake.nixosModules.gtkTheme = {
config,
pkgs,
lib,
...
}: let
catppuccinGtk = pkgs.catppuccin-gtk.override {
variant = "mocha";
accents = ["mauve"];
size = "standard";
tweaks = ["rimless"];
};
gtkThemeName = "Catppuccin-Mocha-Standard-Mauve-Dark";
gtkSettingsCommon = ''
gtk-application-prefer-dark-theme = true
gtk-theme-name = ${gtkThemeName}
gtk-icon-theme-name = Catppuccin-Mocha-Mauve
gtk-font-name = FiraMono Nerd Font 11
gtk-cursor-theme-name = Bibata-Modern-Ice
gtk-cursor-theme-size = 20
'';
in {
fonts.packages = [pkgs.nerd-fonts.fira-mono];
environment.systemPackages = with pkgs; [
catppuccinGtk
bibata-cursors
catppuccin-icons
];
environment.etc = {
"gtk-3.0/settings.ini".source = pkgs.writeText "gtk3-settings.ini" ''
[Settings]
${gtkSettingsCommon}
'';
"gtk-4.0/settings.ini".source = pkgs.writeText "gtk4-settings.ini" ''
[Settings]
${gtkSettingsCommon}
'';
};
environment.variables = {
XCURSOR_THEME = "Bibata-Modern-Ice";
XCURSOR_SIZE = "20";
};
programs.dconf.profiles.user.databases = [
{
lockAll = false;
settings = {
"org/gnome/desktop/interface" = {
gtk-theme = gtkThemeName;
icon-theme = "Catppuccin-Mocha-Mauve";
cursor-theme = "Bibata-Modern-Ice";
font-name = "FiraMono Nerd Font 11";
};
};
}
];
};
}