-
-
Save LovingMelody/be5dff6bd91e0cdbbb3de9416d036690 to your computer and use it in GitHub Desktop.
Broken Stylix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"base16": { | |
"inputs": { | |
"fromYaml": "fromYaml" | |
}, | |
"locked": { | |
"lastModified": 1708890466, | |
"narHash": "sha256-LlrC09LoPi8OPYOGPXegD72v+//VapgAqhbOFS3i8sc=", | |
"owner": "SenchoPens", | |
"repo": "base16.nix", | |
"rev": "665b3c6748534eb766c777298721cece9453fdae", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "SenchoPens", | |
"repo": "base16.nix", | |
"type": "github" | |
} | |
}, | |
"base16-fish": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1622559957, | |
"narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=", | |
"owner": "tomyun", | |
"repo": "base16-fish", | |
"rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tomyun", | |
"repo": "base16-fish", | |
"type": "github" | |
} | |
}, | |
"base16-foot": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1696725948, | |
"narHash": "sha256-65bz2bUL/yzZ1c8/GQASnoiGwaF8DczlxJtzik1c0AU=", | |
"owner": "tinted-theming", | |
"repo": "base16-foot", | |
"rev": "eedbcfa30de0a4baa03e99f5e3ceb5535c2755ce", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tinted-theming", | |
"repo": "base16-foot", | |
"type": "github" | |
} | |
}, | |
"base16-helix": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1696727917, | |
"narHash": "sha256-FVrbPk+NtMra0jtlC5oxyNchbm8FosmvXIatkRbYy1g=", | |
"owner": "tinted-theming", | |
"repo": "base16-helix", | |
"rev": "dbe1480d99fe80f08df7970e471fac24c05f2ddb", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tinted-theming", | |
"repo": "base16-helix", | |
"type": "github" | |
} | |
}, | |
"base16-kitty": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1665001328, | |
"narHash": "sha256-aRaizTYPpuWEcvoYE9U+YRX+Wsc8+iG0guQJbvxEdJY=", | |
"owner": "kdrag0n", | |
"repo": "base16-kitty", | |
"rev": "06bb401fa9a0ffb84365905ffbb959ae5bf40805", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "kdrag0n", | |
"repo": "base16-kitty", | |
"type": "github" | |
} | |
}, | |
"base16-tmux": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1696725902, | |
"narHash": "sha256-wDPg5elZPcQpu7Df0lI5O8Jv4A3T6jUQIVg63KDU+3Q=", | |
"owner": "tinted-theming", | |
"repo": "base16-tmux", | |
"rev": "c02050bebb60dbb20cb433cd4d8ce668ecc11ba7", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tinted-theming", | |
"repo": "base16-tmux", | |
"type": "github" | |
} | |
}, | |
"base16-vim": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1716150083, | |
"narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=", | |
"owner": "tinted-theming", | |
"repo": "base16-vim", | |
"rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tinted-theming", | |
"repo": "base16-vim", | |
"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" | |
} | |
}, | |
"fromYaml": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1689549921, | |
"narHash": "sha256-iX0pk/uB019TdBGlaJEWvBCfydT6sRq+eDcGPifVsCM=", | |
"owner": "SenchoPens", | |
"repo": "fromYaml", | |
"rev": "11fbbbfb32e3289d3c631e0134a23854e7865c84", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "SenchoPens", | |
"repo": "fromYaml", | |
"type": "github" | |
} | |
}, | |
"gnome-shell": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1713702291, | |
"narHash": "sha256-zYP1ehjtcV8fo+c+JFfkAqktZ384Y+y779fzmR9lQAU=", | |
"owner": "GNOME", | |
"repo": "gnome-shell", | |
"rev": "0d0aadf013f78a7f7f1dc984d0d812971864b934", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "GNOME", | |
"ref": "46.1", | |
"repo": "gnome-shell", | |
"type": "github" | |
} | |
}, | |
"home-manager": { | |
"inputs": { | |
"nixpkgs": [ | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1719037157, | |
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=", | |
"owner": "nix-community", | |
"repo": "home-manager", | |
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nix-community", | |
"repo": "home-manager", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1719082008, | |
"narHash": "sha256-jHJSUH619zBQ6WdC21fFAlDxHErKVDJ5fpN0Hgx4sjs=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "9693852a2070b398ee123a329e68f0dab5526681", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-unstable-small", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"home-manager": "home-manager", | |
"nixpkgs": "nixpkgs", | |
"schemes": "schemes", | |
"stylix": "stylix" | |
} | |
}, | |
"schemes": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1718992165, | |
"narHash": "sha256-9i9IjZcjvinb/214x5YShUDBZBC2189HYs26uGy/Hck=", | |
"owner": "tinted-theming", | |
"repo": "schemes", | |
"rev": "ef9a4c3c384624694608adebf0993d7a3bed3cf2", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "tinted-theming", | |
"repo": "schemes", | |
"type": "github" | |
} | |
}, | |
"stylix": { | |
"inputs": { | |
"base16": "base16", | |
"base16-fish": "base16-fish", | |
"base16-foot": "base16-foot", | |
"base16-helix": "base16-helix", | |
"base16-kitty": "base16-kitty", | |
"base16-tmux": "base16-tmux", | |
"base16-vim": "base16-vim", | |
"flake-compat": "flake-compat", | |
"gnome-shell": "gnome-shell", | |
"home-manager": [ | |
"home-manager" | |
], | |
"nixpkgs": [ | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1718971834, | |
"narHash": "sha256-k+BjPJgjmG+u8VwyzjA6YxkoBn9tP1m19h0CQGc3iGM=", | |
"owner": "danth", | |
"repo": "stylix", | |
"rev": "97dcf3c216fe5fb19c406e39f265d3bc9b851377", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "danth", | |
"repo": "stylix", | |
"type": "github" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; | |
inputs = { | |
home-manager.inputs.nixpkgs.follows = "nixpkgs"; | |
home-manager.url = "github:nix-community/home-manager"; | |
schemes.flake = false; | |
schemes.url = "github:tinted-theming/schemes"; | |
stylix.inputs.home-manager.follows = "home-manager"; | |
stylix.inputs.nixpkgs.follows = "nixpkgs"; | |
stylix.url = "github:danth/stylix"; | |
}; | |
outputs = | |
{ | |
nixpkgs, | |
self, | |
stylix, | |
home-manager, | |
... | |
}@inputs: | |
{ | |
nixosConfigurations = { | |
Style = nixpkgs.lib.nixosSystem { | |
system = "x86_64-linux"; | |
specialArgs = { | |
inputs = inputs // { | |
inherit self; | |
}; | |
}; | |
modules = [ | |
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix" | |
stylix.nixosModules.stylix | |
home-manager.nixosModules.home-manager | |
self.nixosModules.styles | |
( | |
{ config, ... }: | |
{ | |
home-manager = { | |
sharedModules = [ self.homeModules.styles ]; | |
useGlobalPkgs = true; | |
useUserPackages = true; | |
users.nixos = { | |
home.stateVersion = config.system.stateVersion; | |
}; | |
extraSpecialArgs = { | |
inherit inputs; | |
osConfig = config; | |
}; | |
}; | |
} | |
) | |
]; | |
}; | |
}; | |
homeModules = { | |
inherit (self.nixosModules) styles; | |
}; | |
nixosModules.styles = | |
{ | |
config, | |
pkgs, | |
inputs, | |
lib, | |
... | |
}: | |
let | |
inherit (inputs) schemes; | |
colors = | |
with config.lib.stylix.colors; | |
lib.strings.concatStringsSep " " [ | |
base00 | |
base01 | |
base02 | |
base03 | |
base04 | |
base05 | |
base06 | |
base07 | |
base08 | |
base09 | |
base0A | |
base0B | |
base0C | |
base0D | |
base0E | |
base0F | |
]; | |
in | |
{ | |
config = { | |
stylix = { | |
enable = true; | |
image = | |
let | |
editImage = | |
img: | |
let | |
baseName = builtins.baseNameOf img; | |
in | |
pkgs.runCommand baseName { } '' | |
${pkgs.lutgen}/bin/lutgen apply '${img}' -o $out -- ${colors} | |
''; | |
in | |
editImage "${pkgs.pantheon.elementary-wallpapers.src}/backgrounds/odin-dark.jpg"; | |
polarity = "dark"; | |
base16Scheme = "${schemes}/base16/catppuccin-mocha.yaml"; | |
}; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment