mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved images to their own package
This commit is contained in:
parent
a30da40b06
commit
3a1f1245e8
6 changed files with 24 additions and 3 deletions
BIN
misc/nixos.png
BIN
misc/nixos.png
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8 MiB |
|
|
@ -19,7 +19,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = {
|
displayManager = {
|
||||||
sessionCommands = ''
|
sessionCommands = ''
|
||||||
${pkgs.feh}/bin/feh --bg-center ${self + /misc/recursion.png}
|
${pkgs.feh}/bin/feh --bg-center ${self.packages.${pkgs.system}.images + /recursion.png}
|
||||||
${pkgs.numlockx}/bin/numlockx
|
${pkgs.numlockx}/bin/numlockx
|
||||||
${pkgs.picom}/bin/picom &
|
${pkgs.picom}/bin/picom &
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
self,
|
self,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.localModules.DM.lightdm;
|
cfg = config.localModules.DM.lightdm;
|
||||||
|
|
@ -14,7 +15,7 @@ in {
|
||||||
displayManager = {
|
displayManager = {
|
||||||
lightdm = {
|
lightdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
background = self + /misc/recursion.png;
|
background = self.packages.${pkgs.system}.images + /recursion.png;
|
||||||
extraConfig = "minimum-vt=1";
|
extraConfig = "minimum-vt=1";
|
||||||
greeters.mini = {
|
greeters.mini = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
21
pkgs/images.nix
Normal file
21
pkgs/images.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
fetchurl,
|
||||||
|
runCommand,
|
||||||
|
imagemagick,
|
||||||
|
}:
|
||||||
|
runCommand "my-example" {
|
||||||
|
recursion = fetchurl {
|
||||||
|
url = "https://github.com/NixOS/nixos-artwork/raw/bcdd2770f5f4839fddc9b503e68db2bc3a87ca4d/wallpapers/nix-wallpaper-recursive.png";
|
||||||
|
sha256 = "sha256-YvFrlysNGMwJ7eMFOoz0KI8AjoPN3ao+AVOgnVZzkFE=";
|
||||||
|
};
|
||||||
|
logo = fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/376ed4ba8dc2e611b7e8a62fdc680967ead5bd87/logo/nix-snowflake.svg";
|
||||||
|
sha256 = "sha256-SCuQlSPB14GFTq4XvExJ0QEuK2VIbrd5YYKHLRG/q5I=";
|
||||||
|
};
|
||||||
|
buildInputs = [imagemagick];
|
||||||
|
}
|
||||||
|
''
|
||||||
|
mkdir -p $out
|
||||||
|
cp $recursion $out/recursion.png
|
||||||
|
convert -background none -size 512x512 $logo $out/logo.png
|
||||||
|
''
|
||||||
|
|
@ -98,7 +98,6 @@
|
||||||
};
|
};
|
||||||
#user managment
|
#user managment
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
root.neededForUsers = true;
|
|
||||||
gerg.neededForUsers = true;
|
gerg.neededForUsers = true;
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue