Compare commits

..

No commits in common. "5e6c22caa06061445be6649057ff70044b4410c1" and "f6135f43c78bc79a885d2d7aa8f31ca28fcfd407" have entirely different histories.

18 changed files with 344 additions and 156 deletions

View File

@ -58,24 +58,19 @@
"type": "github" "type": "github"
} }
}, },
"base16": { "base16-schemes": {
"inputs": { "flake": false,
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1658847131, "lastModified": 1665690101,
"narHash": "sha256-X6Mml7cT0YR3WCD5fkUhpRVV5ZPcwdcDsND8r8xMqTE=", "narHash": "sha256-J2ZvNaVFkqaTXzYO5L+jyRORfIOavFPKvWItP6UTMKs=",
"owner": "SenchoPens", "owner": "tinted-theming",
"repo": "base16.nix", "repo": "base16-schemes",
"rev": "6b404cda2e04ca3cf5ca7b877af9c469e1386acb", "rev": "a3dc916cf90471a422c0bfe1bb4b1bdd12185ced",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "SenchoPens", "owner": "tinted-theming",
"repo": "base16.nix", "repo": "base16-schemes",
"type": "github" "type": "github"
} }
}, },
@ -171,28 +166,6 @@
"type": "gitlab" "type": "gitlab"
} }
}, },
"coricamu": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
],
"utils": "utils_2"
},
"locked": {
"lastModified": 1677749800,
"narHash": "sha256-xIqxDr4fkOA5R4OudbQoUMS8xvPJNCyGfqugENutSP4=",
"owner": "danth",
"repo": "coricamu",
"rev": "40db414609dc6d72319987d3e9d7b56fe405c28f",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "coricamu",
"type": "github"
}
},
"crane": { "crane": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -502,22 +475,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -857,6 +814,25 @@
"type": "github" "type": "github"
} }
}, },
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
"nixpkgs-lib": "nixpkgs-lib_4"
},
"locked": {
"lastModified": 1672236234,
"narHash": "sha256-dpBIuxcDEvJbLD8fTipE0A0JbQD1lZB94zYFPoh01PI=",
"owner": "Misterio77",
"repo": "nix-colors",
"rev": "7e459f1d88ac54fc2f4b308adb5064863006e4b1",
"type": "github"
},
"original": {
"owner": "Misterio77",
"repo": "nix-colors",
"type": "github"
}
},
"nix-pypi-fetcher": { "nix-pypi-fetcher": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -993,6 +969,21 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib_4": {
"locked": {
"lastModified": 1655599917,
"narHash": "sha256-kjZbt5WdTrnjMxL79okg9TCoRUdADG50x/TWozbyTsE=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "5fb55578aa2f1a502d636a8ac71aece57cb730bb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-wayland": { "nixpkgs-wayland": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1183,13 +1174,13 @@
"helix": "helix", "helix": "helix",
"home": "home", "home": "home",
"nil": "nil", "nil": "nil",
"nix-colors": "nix-colors",
"nixinate": "nixinate", "nixinate": "nixinate",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixos-persistence": "nixos-persistence", "nixos-persistence": "nixos-persistence",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"nur": "nur", "nur": "nur"
"stylix": "stylix"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {
@ -1294,32 +1285,6 @@
"type": "github" "type": "github"
} }
}, },
"stylix": {
"inputs": {
"base16": "base16",
"coricamu": "coricamu",
"flake-compat": "flake-compat",
"home-manager": [
"home"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1679594819,
"narHash": "sha256-DQ36Qh6mTr8qGS1F4SSzsI0VEmaNspEO5BTy723m2Lo=",
"owner": "danth",
"repo": "stylix",
"rev": "5887b5381626d27f40d0ca4813388ac619913b87",
"type": "github"
},
"original": {
"owner": "danth",
"repo": "stylix",
"type": "github"
}
},
"tailwind": { "tailwind": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1351,21 +1316,6 @@
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
},
"utils_2": {
"locked": {
"lastModified": 1642700792,
"narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -34,10 +34,6 @@
nil.url = "github:oxalica/nil"; nil.url = "github:oxalica/nil";
nil.inputs.nixpkgs.follows = "nixpkgs"; nil.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:danth/stylix";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.inputs.home-manager.follows = "home";
# needed for hyprland setup # needed for hyprland setup
# hyprland.url = "github:hyprwm/Hyprland"; # hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs"; # hyprland.inputs.nixpkgs.follows = "nixpkgs";
@ -46,6 +42,7 @@
# eww.url = "github:elkowar/eww"; # eww.url = "github:elkowar/eww";
# eww.inputs.nixpkgs.follows = "nixpkgs"; # eww.inputs.nixpkgs.follows = "nixpkgs";
nix-colors.url = "github:Misterio77/nix-colors";
# catppuccin-discord.url = "https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css"; # catppuccin-discord.url = "https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css";
# catppuccin-discord.flake = false; # catppuccin-discord.flake = false;
}; };

View File

@ -1 +0,0 @@
../../../modules/de/greetd/default.nix

View File

@ -4,7 +4,7 @@
settings = { settings = {
terminal.vt = 1; terminal.vt = 1;
default_session = { default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --issue --time --cmd 'sway --unsupported-gpu'"; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --issue --time --cmd 'apply-hm-env Hyprland'";
user = "greeter"; user = "greeter";
}; };
}; };

View File

@ -0,0 +1,27 @@
{lib, ...}: let
l = lib // builtins;
t = l.types;
in {
options = {
colors = {
theme = l.mkOption {
type = t.str;
};
base = l.mkOption {
type = t.attrsOf t.str;
};
x = l.mkOption {
type = t.attrsOf t.str;
};
xrgba = l.mkOption {
type = t.attrsOf t.str;
};
xargb = l.mkOption {
type = t.attrsOf t.str;
};
rgba = l.mkOption {
type = t.attrsOf t.str;
};
};
};
}

View File

@ -1,4 +1,10 @@
{config, ...}: { {
config,
pkgs,
...
}: let
x = config.colors.x;
in {
# notification daemon # notification daemon
services.dunst = { services.dunst = {
enable = true; enable = true;
@ -8,6 +14,7 @@
alignment = "center"; alignment = "center";
corner_radius = 16; corner_radius = 16;
follow = "mouse"; follow = "mouse";
font = config.settings.font.regular.fullName;
format = "<b>%s</b>\\n%b"; format = "<b>%s</b>\\n%b";
frame_width = 1; frame_width = 1;
offset = "5x5"; offset = "5x5";
@ -21,6 +28,7 @@
mouse_right_click = "close_current"; mouse_right_click = "close_current";
padding = 8; padding = 8;
plain_text = "no"; plain_text = "no";
separator_color = "auto";
separator_height = 1; separator_height = 1;
show_indicators = false; show_indicators = false;
shrink = "no"; shrink = "no";
@ -28,6 +36,22 @@
}; };
fullscreen_delay_everything = {fullscreen = "delay";}; fullscreen_delay_everything = {fullscreen = "delay";};
urgency_critical = {
background = x.base00;
foreground = x.base06;
frame_color = x.base08;
};
urgency_low = {
background = x.base00;
foreground = x.base06;
frame_color = x.base05;
};
urgency_normal = {
background = x.base00;
foreground = x.base06;
frame_color = x.base06;
};
}; };
}; };
} }

View File

@ -1,5 +1,5 @@
{ {
lib, config,
pkgs, pkgs,
... ...
}: { }: {
@ -9,6 +9,31 @@
enable = true; enable = true;
package = pkgs.foot; package = pkgs.foot;
server.enable = false; server.enable = false;
settings.main.dpi-aware = lib.mkForce "yes"; settings = {
main = {
font = "${config.settings.font.monospace.name}:size=${toString config.settings.font.monospace.size}";
dpi-aware = "yes";
};
colors = {
foreground = "cdd6f4"; # Text
background = "1e1e2e"; # Base
regular0 = "45475a"; # Surface 1
regular1 = "f38ba8"; # red
regular2 = "a6e3a1"; # green
regular3 = "f9e2af"; # yellow
regular4 = "89b4fa"; # blue
regular5 = "f5c2e7"; # pink
regular6 = "94e2d5"; # teal
regular7 = "bac2de"; # Subtext 1
bright0 = "585b70"; # Surface 2
bright1 = "f38ba8"; # red
bright2 = "a6e3a1"; # green
bright3 = "f9e2af"; # yellow
bright4 = "89b4fa"; # blue
bright5 = "f5c2e7"; # pink
bright6 = "94e2d5"; # teal
bright7 = "a6adc8"; # Subtext 0
};
};
}; };
} }

View File

@ -1,6 +1,6 @@
{config, ...}: { {config, ...}: {
programs.fzf.enable = true; programs.fzf.enable = true;
# home.sessionVariables = { home.sessionVariables = {
# FZF_DEFAULT_OPTS = "--color=spinner:#F8BD96,hl:#F28FAD --color=fg:#D9E0EE,header:#F28FAD,info:#DDB6F2,pointer:#F8BD96 --color=marker:#F8BD96,fg+:#F2CDCD,prompt:#DDB6F2,hl+:#F28FAD"; FZF_DEFAULT_OPTS = "--color=spinner:#F8BD96,hl:#F28FAD --color=fg:#D9E0EE,header:#F28FAD,info:#DDB6F2,pointer:#F8BD96 --color=marker:#F8BD96,fg+:#F2CDCD,prompt:#DDB6F2,hl+:#F28FAD";
# }; };
} }

View File

@ -21,6 +21,7 @@
} }
]; ];
settings = { settings = {
theme = "catppuccin_mocha";
editor = { editor = {
line-number = "relative"; line-number = "relative";
middle-click-paste = false; middle-click-paste = false;

View File

@ -1,7 +1,18 @@
{...}: { {
pkgs,
config,
...
}: {
programs.mako = { programs.mako = {
enable = true; enable = true;
anchor = "top-center"; anchor = "top-center";
font = config.settings.font.regular.fullName;
borderRadius = 16; borderRadius = 16;
extraConfig = builtins.readFile (
builtins.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/mako/d077d9832e8f22777a4812eadbfb658e793cbdfc/config";
sha256 = "sha256:1c8j16ljbnynb5kplxvhg99rw536hbxxz1rl8qgaixdf2bg2awp0";
}
);
}; };
} }

View File

@ -1,6 +1,120 @@
{pkgs, ...}: { {
programs.rofi = { pkgs,
enable = true; config,
package = pkgs.rofi-wayland; ...
}: {
home.packages = [pkgs.rofi-wayland];
xdg.enable = true;
xdg.dataFile = {
"rofi/themes/catppuccin.rasi".source = builtins.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/rofi/c7c242d6bfd4cabdc9a220cff71e3b0766811fbe/.local/share/rofi/themes/catppuccin.rasi";
sha256 = "sha256:17jssby0llsnabzfz3lp4wcc9vdzfz77i5wjcclfcyyvpswc53nx";
};
};
xdg.configFile = {
"rofi/config.rasi".text = ''
configuration{
modi: "drun";
lines: 5;
font: "${config.settings.font.regular.fullName}";
show-icons: true;
terminal: "st";
drun-display-format: "{icon} {name}";
location: 0;
disable-history: false;
hide-scrollbar: true;
display-drun: " Apps ";
display-run: " Run ";
display-window: " Window";
display-Network: " 󰤨 Network";
sidebar-mode: true;
}
@theme "catppuccin"
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 40%;
width: 40%;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
'';
}; };
} }

View File

@ -6,6 +6,21 @@
l = lib // builtins; l = lib // builtins;
t = l.types; t = l.types;
cfg = config.settings; cfg = config.settings;
fontSettings = {
name = l.mkOption {
type = t.str;
};
package = l.mkOption {
type = t.package;
};
size = l.mkOption {
type = t.ints.unsigned;
};
fullName = l.mkOption {
type = t.str;
readOnly = true;
};
};
in { in {
options = { options = {
settings.iconTheme = { settings.iconTheme = {
@ -24,9 +39,15 @@ in {
type = t.path; type = t.path;
}; };
}; };
settings.font = {
regular = fontSettings;
monospace = fontSettings;
};
}; };
config = { config = {
gtk.iconTheme = cfg.iconTheme; home.packages = [cfg.font.regular.package cfg.font.monospace.package];
settings.font.regular.fullName = "${cfg.font.regular.name} ${toString cfg.font.regular.size}";
settings.font.monospace.fullName = "${cfg.font.monospace.name} ${toString cfg.font.monospace.size}";
}; };
} }

View File

@ -30,6 +30,10 @@
exec xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2 exec xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
''; '';
config = { config = {
fonts = {
names = [config.settings.font.regular.name];
size = config.settings.font.regular.size + 0.0;
};
bars = []; bars = [];
gaps.smartBorders = "on"; gaps.smartBorders = "on";
menu = mkRofiCmd ["-show" "drun"]; menu = mkRofiCmd ["-show" "drun"];
@ -98,7 +102,7 @@
}; };
output = { output = {
"*" = { "*" = {
bg = "${config.stylix.image} fill"; bg = "${config.home.homeDirectory}/.config/wallpaper fill";
# adaptive_sync = "on"; # adaptive_sync = "on";
}; };
"eDP-1" = { "eDP-1" = {

View File

@ -1,4 +1,8 @@
{pkgs, ...}: { {
config,
pkgs,
...
}: {
home.packages = [pkgs.swaylock-effects]; home.packages = [pkgs.swaylock-effects];
programs.swaylock.settings = { programs.swaylock.settings = {
@ -8,5 +12,6 @@
effect-scale = "0.5"; effect-scale = "0.5";
effect-greyscale = true; effect-greyscale = true;
effect-blur = "20x3"; effect-blur = "20x3";
font = config.settings.font.regular.name;
}; };
} }

25
users/patriot/colors.nix Normal file
View File

@ -0,0 +1,25 @@
{
lib,
tlib,
inputs,
...
}: let
l = lib;
theme = "catppuccin";
colors = with tlib.colors; let
baseColors = inputs.nix-colors.colorSchemes.${theme}.colors;
in {
base = baseColors;
# #RRGGBB
x = l.mapAttrs (_: x) baseColors;
# #RRGGBBAA
xrgba = l.mapAttrs (_: xrgba) baseColors;
# #AARRGGBB
xargb = l.mapAttrs (_: xargb) baseColors;
# rgba(,,,) colors (css)
rgba = l.mapAttrs (_: rgba) baseColors;
};
in {
imports = [../modules/colors];
config.colors = colors // {inherit theme;};
}

View File

@ -3,14 +3,14 @@
lib, lib,
tlib, tlib,
config, config,
inputs,
... ...
} @ globalAttrs: let } @ globalAttrs: let
l = lib // builtins; l = lib // builtins;
nixosConfig = globalAttrs.config; nixosConfig = globalAttrs.config;
in { in {
imports = [./stylix.nix]; # imports = [../../modules/de/gnome];
users.users.patriot = { users.users.patriot = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
@ -114,6 +114,7 @@ in {
]; ];
in in
l.flatten [ l.flatten [
./colors.nix
../../modules/persist ../../modules/persist
inputs.nixos-persistence.nixosModules.home-manager.impermanence inputs.nixos-persistence.nixosModules.home-manager.impermanence
(tlib.prefixStrings "${inputs.self}/users/modules/" modulesToEnable) (tlib.prefixStrings "${inputs.self}/users/modules/" modulesToEnable)
@ -158,6 +159,16 @@ in {
}; };
fonts.fontconfig.enable = l.mkForce true; fonts.fontconfig.enable = l.mkForce true;
settings.font.regular = {
name = "Comic Relief";
size = 13;
package = pkgs.comic-relief;
};
settings.font.monospace = {
name = "Comic Mono";
size = 13;
package = pkgs.comic-mono;
};
settings.iconTheme = { settings.iconTheme = {
name = "Yaru-dark"; name = "Yaru-dark";
@ -172,20 +183,22 @@ in {
x11.enable = true; x11.enable = true;
}; };
# gtk = { gtk = {
# enable = true; enable = true;
# font = { font = {
# inherit (config.settings.font.regular) name package; inherit (config.settings.font.regular) name package;
# }; };
# gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc"; gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
# theme = { iconTheme = config.settings.iconTheme;
# name = "Yaru-dark";
# package = pkgs.yaru-theme; theme = {
# }; name = "Yaru-dark";
# }; package = pkgs.yaru-theme;
};
};
home = { home = {
homeDirectory = nixosConfig.users.users.patriot.home; homeDirectory = nixosConfig.users.users.patriot.home;

View File

@ -1,28 +0,0 @@
{
inputs,
config,
pkgs,
...
}: {
imports = [inputs.stylix.nixosModules.stylix];
stylix.image = ./wallpaper.png;
stylix.polarity = "dark";
stylix.fonts = {
serif = {
name = "Comic Relief";
package = pkgs.comic-relief;
};
sansSerif = config.stylix.fonts.serif;
monospace = {
name = "Comic Mono";
package = pkgs.comic-mono;
};
};
stylix.fonts.sizes = {
popups = 13;
terminal = 13;
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 KiB