mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Use my FlakeTools and rearrange specialArgs
This commit is contained in:
parent
9ca297f2ec
commit
7b10e526a7
8 changed files with 38 additions and 57 deletions
36
flake.lock
generated
36
flake.lock
generated
|
@ -125,8 +125,7 @@
|
||||||
"fenix": "fenix",
|
"fenix": "fenix",
|
||||||
"homeManager": "homeManager",
|
"homeManager": "homeManager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2"
|
||||||
"utils": "utils"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
@ -161,39 +160,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1694529238,
|
|
||||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"wlroots": {
|
"wlroots": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
29
flake.nix
29
flake.nix
|
@ -23,8 +23,9 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
utils = {
|
tools = {
|
||||||
url = "github:numtide/flake-utils";
|
url = "github:RGBCube/FlakeTools";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fenix = {
|
fenix = {
|
||||||
|
@ -37,12 +38,22 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, homeManager, utils, fenix, ... } @ inputs: utils.lib.eachDefaultSystem (system: let
|
outputs = { nixpkgs, homeManager, tools, fenix, ... } @ inputs: tools.eachDefaultArch (system: let
|
||||||
|
upkgs = {
|
||||||
|
theme = import ./themes/gruvbox.nix;
|
||||||
|
|
||||||
|
hyprland = inputs.hyprland.packages.${system}.default;
|
||||||
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
ulib = rec {
|
ulib = {
|
||||||
recursiveUpdate3 = x: y: z: lib.recursiveUpdate x (lib.recursiveUpdate y z);
|
inherit (tools) recursiveUpdateMap;
|
||||||
|
|
||||||
|
recursiveUpdate3 = x: y: z: lib.recursiveUpdate x (lib.recursiveUpdate y z);
|
||||||
|
};
|
||||||
|
|
||||||
|
abstractions = rec {
|
||||||
importAll = paths: {
|
importAll = paths: {
|
||||||
imports = paths;
|
imports = paths;
|
||||||
};
|
};
|
||||||
|
@ -76,10 +87,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
theme = import ./themes/gruvbox.nix;
|
|
||||||
|
|
||||||
hyprland = inputs.hyprland.packages.${system}.default;
|
|
||||||
|
|
||||||
defaultConfiguration = host: ulib.systemConfiguration {
|
defaultConfiguration = host: ulib.systemConfiguration {
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -110,8 +117,8 @@
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
specialArgs = ulib // {
|
specialArgs = abstractions // {
|
||||||
inherit theme hyprland;
|
inherit upkgs ulib;
|
||||||
};
|
};
|
||||||
|
|
||||||
importConfiguration = host: lib.nixosSystem {
|
importConfiguration = host: lib.nixosSystem {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ recursiveUpdate3, systemConfiguration, homeConfiguration, importAll, ... }: recursiveUpdate3
|
{ ulib, systemConfiguration, homeConfiguration, importAll, ... }: ulib.recursiveUpdate3
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{ pkgs, theme, homeConfiguration, enabled, ... }:
|
{ pkgs, upkgs, homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
services.dunst = enabled {
|
services.dunst = let
|
||||||
|
inherit (upkgs) theme;
|
||||||
|
in enabled {
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Gruvbox-Dark";
|
name = "Gruvbox-Dark";
|
||||||
package = pkgs.gruvbox-dark-icons-gtk;
|
package = pkgs.gruvbox-dark-icons-gtk;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ theme, homeConfiguration, enabled, ... }:
|
{ upkgs, homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
programs.fuzzel = enabled {
|
programs.fuzzel = enabled {
|
||||||
|
@ -16,7 +16,9 @@ homeConfiguration "nixos" {
|
||||||
inner-pad = 10;
|
inner-pad = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.colors = {
|
settings.colors = let
|
||||||
|
inherit (upkgs) theme;
|
||||||
|
in {
|
||||||
background = theme.background + theme.transparency;
|
background = theme.background + theme.transparency;
|
||||||
text = theme.foreground + theme.transparency;
|
text = theme.foreground + theme.transparency;
|
||||||
match = theme.activeHighlight + theme.transparency;
|
match = theme.activeHighlight + theme.transparency;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, recursiveUpdate3, hyprland, theme, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: recursiveUpdate3
|
{ pkgs, upkgs, ulib, theme, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: ulib.recursiveUpdate3
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
hardware.opengl = enabled {};
|
hardware.opengl = enabled {};
|
||||||
|
@ -12,9 +12,11 @@
|
||||||
|
|
||||||
(homeConfiguration "nixos" {
|
(homeConfiguration "nixos" {
|
||||||
wayland.windowManager.hyprland = enabled {
|
wayland.windowManager.hyprland = enabled {
|
||||||
package = hyprland;
|
package = upkgs.hyprland;
|
||||||
|
|
||||||
extraConfig =
|
extraConfig = let
|
||||||
|
inherit (upkgs) theme;
|
||||||
|
in
|
||||||
''
|
''
|
||||||
monitor = , preferred, auto, 1
|
monitor = , preferred, auto, 1
|
||||||
''
|
''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, theme, homeConfiguration, enabled, ... }:
|
{ pkgs, upkgs, homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
programs.kitty = enabled {
|
programs.kitty = enabled {
|
||||||
|
@ -12,7 +12,9 @@ homeConfiguration "nixos" {
|
||||||
|
|
||||||
theme = "Gruvbox Dark";
|
theme = "Gruvbox Dark";
|
||||||
|
|
||||||
settings = {
|
settings = let
|
||||||
|
inherit (upkgs) theme;
|
||||||
|
in {
|
||||||
allow_remote_control = true;
|
allow_remote_control = true;
|
||||||
confirm_os_window_close = 0;
|
confirm_os_window_close = 0;
|
||||||
focus_follows_mouse = true;
|
focus_follows_mouse = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, recursiveUpdate3, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: recursiveUpdate3
|
{ pkgs, ulib, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: ulib.recursiveUpdate3
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
users.defaultUserShell = pkgs.nushell;
|
users.defaultUserShell = pkgs.nushell;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue