switched to default.nix for system-config

This commit is contained in:
2025-01-12 09:23:28 -06:00
parent c3bd247e25
commit 1689da5b56
14 changed files with 105 additions and 265 deletions

View File

@@ -0,0 +1,25 @@
{ config, lib, pkgs, inputs, ... }: {
options.sysconfig.opts.sddm.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.opts.sddm.enable {
qt.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
autoNumlock = true;
theme = "${inputs.tokyo-night-sddm-theme { inherit pkgs; }}";
enableHidpi = true;
extraPackages = with pkgs; [
libsForQt5.qtsvg
libsForQt5.qtquickcontrols2
libsForQt5.qtgraphicaleffects
];
};
};
}

View File

@@ -1,42 +0,0 @@
{
"nodes": {
"repo": {
"flake": false,
"locked": {
"lastModified": 1686823900,
"narHash": "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=",
"owner": "siddrs",
"repo": "tokyo-night-sddm",
"rev": "320c8e74ade1e94f640708eee0b9a75a395697c6",
"type": "github"
},
"original": {
"owner": "siddrs",
"repo": "tokyo-night-sddm",
"type": "github"
}
},
"root": {
"inputs": {
"theme": "theme"
}
},
"theme": {
"inputs": {
"repo": "repo"
},
"locked": {
"lastModified": 1,
"narHash": "sha256-eXmGZXA4mlXGERWWjh2QZCQV8GphWPf+yKt+Fg16OOI=",
"path": "/nix/store/dfaqxn91asadchiwlldsjvjr24jypbd8-source/themes/tokyo-night",
"type": "path"
},
"original": {
"path": "/nix/store/dfaqxn91asadchiwlldsjvjr24jypbd8-source/themes/tokyo-night",
"type": "path"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,38 +0,0 @@
{
description = "sddm config";
inputs = {
theme.url = "./themes/tokyo-night";
};
outputs = { self, ... }@inputs: {
module = { config, lib, pkgs, ... }: {
options.sysconfig.opts.sddm.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.opts.sddm.enable {
qt.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
autoNumlock = true;
theme = "${inputs.theme.theme { inherit pkgs; }}";
enableHidpi = true;
extraPackages = with pkgs; [
libsForQt5.qtsvg
libsForQt5.qtquickcontrols2
libsForQt5.qtgraphicaleffects
];
};
};
};
};
}

View File

@@ -1,29 +0,0 @@
{
description = "Package Sugar Dark SDDM theme";
inputs = {
repo = {
url = "github:MarianArlt/sddm-sugar-dark";
flake = false;
};
};
outputs = { self, repo, ... }: {
theme = { pkgs }: pkgs.stdenv.mkDerivation {
name = "sugar-dark";
src = repo;
installPhase = ''
mkdir -p $out
cp -R $src/* $out/
'';
};
};
}

View File

@@ -1,27 +0,0 @@
{
"nodes": {
"repo": {
"flake": false,
"locked": {
"lastModified": 1686823900,
"narHash": "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=",
"owner": "siddrs",
"repo": "tokyo-night-sddm",
"rev": "320c8e74ade1e94f640708eee0b9a75a395697c6",
"type": "github"
},
"original": {
"owner": "siddrs",
"repo": "tokyo-night-sddm",
"type": "github"
}
},
"root": {
"inputs": {
"repo": "repo"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,29 +0,0 @@
{
description = "Package Tokyo Night SDDM theme";
inputs = {
repo = {
url = "github:siddrs/tokyo-night-sddm";
flake = false;
};
};
outputs = { self, repo, ... }: {
theme = { pkgs }: pkgs.stdenv.mkDerivation {
name = "tokyo-night";
src = repo;
installPhase = ''
mkdir -p $out
cp -R $src/* $out/
'';
};
};
}