graphical: sddm display manager
This commit is contained in:
parent
5f8899e769
commit
92648918af
|
@ -4,7 +4,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../users/nrd.nix
|
../users/nrd
|
||||||
../profiles/graphical
|
../profiles/graphical
|
||||||
../profiles/misc
|
../profiles/misc
|
||||||
];
|
];
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ stdenv, fetchFromGitHub, ... }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "sddm-chili";
|
||||||
|
version = "0.5.5";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "MarianArlt";
|
||||||
|
repo = "kde-plasma-chili";
|
||||||
|
rev = "${version}";
|
||||||
|
hash = "sha256-fWRf96CPRQ2FRkSDtD+N/baZv+HZPO48CfU5Subt854=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/sddm/themes/chili
|
||||||
|
|
||||||
|
cp -r * $out/share/sddm/themes/chili
|
||||||
|
'';
|
||||||
|
}
|
|
@ -43,8 +43,6 @@ in
|
||||||
|
|
||||||
# Theme settings
|
# Theme settings
|
||||||
QT_QPA_PLATFORMTHEME = "gtk2";
|
QT_QPA_PLATFORMTHEME = "gtk2";
|
||||||
GDK_PIXBUF_MODULE_FILE =
|
|
||||||
"$(echo ${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/*/loaders.cache)";
|
|
||||||
GTK2_RC_FILES = let
|
GTK2_RC_FILES = let
|
||||||
gtk = ''
|
gtk = ''
|
||||||
gtk-icon-theme-name="Papirus-Adapta"
|
gtk-icon-theme-name="Papirus-Adapta"
|
||||||
|
@ -75,11 +73,23 @@ in
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
qute
|
qute
|
||||||
qutebrowser
|
qutebrowser
|
||||||
|
sddm-chili
|
||||||
youtubeDL
|
youtubeDL
|
||||||
zathura
|
zathura
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
desktopManager.plasma5.enable = true;
|
||||||
|
|
||||||
|
displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
theme = "chili";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = let
|
nixpkgs.overlays = let
|
||||||
overlay = self: super: {
|
overlay = self: super: {
|
||||||
qute = super.writeShellScriptBin "qute" ''
|
qute = super.writeShellScriptBin "qute" ''
|
||||||
|
@ -90,6 +100,8 @@ in
|
||||||
[icon theme]
|
[icon theme]
|
||||||
Inherits=Adwaita
|
Inherits=Adwaita
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
sddm-chili = super.callPackage ../../pkgs/applications/display-managers/sddm/themes/chili {};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
[ overlay ];
|
[ overlay ];
|
||||||
|
|
|
@ -15,7 +15,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../profiles/develop
|
../../profiles/develop
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
|
@ -24,6 +24,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
nrd-logo
|
||||||
pinentry_gnome
|
pinentry_gnome
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -32,8 +33,8 @@ in
|
||||||
packages = mkForce [];
|
packages = mkForce [];
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
".ec2-keys".source = ../secrets/ec2;
|
".ec2-keys".source = ../../secrets/ec2;
|
||||||
".cargo/credentials".source = ../secrets/cargo;
|
".cargo/credentials".source = ../../secrets/cargo;
|
||||||
".zshrc".text = "#";
|
".zshrc".text = "#";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -135,10 +136,10 @@ in
|
||||||
|
|
||||||
matchBlocks = let
|
matchBlocks = let
|
||||||
githubKey = toFile "github"
|
githubKey = toFile "github"
|
||||||
(readFile ../secrets/github);
|
(readFile ../../secrets/github);
|
||||||
|
|
||||||
gitlabKey = toFile "gitlab"
|
gitlabKey = toFile "gitlab"
|
||||||
(readFile ../secrets/gitlab);
|
(readFile ../../secrets/gitlab);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
github = {
|
github = {
|
||||||
|
@ -170,7 +171,7 @@ in
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
description = name;
|
description = name;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
hashedPassword = fileContents ../secrets/nrd;
|
hashedPassword = fileContents ../../secrets/nrd;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"input"
|
"input"
|
||||||
|
@ -178,4 +179,19 @@ in
|
||||||
"adbusers"
|
"adbusers"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.overlays = let
|
||||||
|
overlay = self: super: {
|
||||||
|
nrd-logo = super.stdenv.mkDerivation {
|
||||||
|
name = "nrdxp-logo";
|
||||||
|
src = ./logo.png;
|
||||||
|
dontUnpack = true;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/sddm/faces
|
||||||
|
cp $src $out/share/sddm/faces/nrd.face.icon
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
[ overlay ];
|
||||||
}
|
}
|
BIN
users/nrd/logo.png
Normal file
BIN
users/nrd/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 330 KiB |
Loading…
Reference in a new issue