add function to disable useless shit
This commit is contained in:
parent
ee492efb2a
commit
9d22e2eff0
3 changed files with 59 additions and 1 deletions
|
|
@ -79,6 +79,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./nixvim/nixvim.nix
|
./nixvim/nixvim.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,35 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
keep = [
|
||||||
|
"neovim"
|
||||||
|
"qt"
|
||||||
|
"gtk"
|
||||||
|
"hyprland"
|
||||||
|
"hyprpaper"
|
||||||
|
"foot"
|
||||||
|
"fuzzel"
|
||||||
|
"discord"
|
||||||
|
"console"
|
||||||
|
];
|
||||||
|
dir = "${inputs.stylix}/modules";
|
||||||
|
|
||||||
|
drop = builtins.filter (n: !(builtins.elem n keep)) (
|
||||||
|
builtins.attrNames (lib.filterAttrs (_: t: t == "directory") (builtins.readDir dir))
|
||||||
|
);
|
||||||
|
|
||||||
|
disable =
|
||||||
|
platform:
|
||||||
|
map (n: "${dir}/${n}/${platform}.nix") (
|
||||||
|
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||||
|
);
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
disabledModules = disable "hm";
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = false;
|
autoEnable = false;
|
||||||
|
|
|
||||||
28
stylix.nix
28
stylix.nix
|
|
@ -1,10 +1,36 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
keep = [
|
||||||
|
"neovim"
|
||||||
|
"qt"
|
||||||
|
"gtk"
|
||||||
|
"hyprland"
|
||||||
|
"foot"
|
||||||
|
"fuzzel"
|
||||||
|
"nixcord"
|
||||||
|
"console"
|
||||||
|
];
|
||||||
|
dir = "${inputs.stylix}/modules";
|
||||||
|
|
||||||
|
drop = builtins.filter (n: !(builtins.elem n keep)) (
|
||||||
|
builtins.attrNames (lib.filterAttrs (_: t: t == "directory") (builtins.readDir dir))
|
||||||
|
);
|
||||||
|
|
||||||
|
disable =
|
||||||
|
platform:
|
||||||
|
map (n: "${dir}/${n}/${platform}.nix") (
|
||||||
|
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||||
|
);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
disabledModules = disable "nixos";
|
||||||
|
|
||||||
stylix.opacity = {
|
stylix.opacity = {
|
||||||
terminal = 0.8;
|
terminal = 0.8;
|
||||||
desktop = 1.0;
|
desktop = 1.0;
|
||||||
|
|
@ -24,7 +50,7 @@
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = false;
|
autoEnable = false;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/oxocarbon-dark.yaml";
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
image = ./wallpaper.png;
|
image = ./wallpaper.png;
|
||||||
targets = {
|
targets = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue