treewide: read commit description
What changed here was: - I updated the lock file - I added ZNC to my services - I moved my services to a new directory - I renamed my user to arturm - I renamed my system to cityseventeen - I moved to en_US.UTF-8 - I switched to using Rose Pine - I added a Mako option - Some refactoring where it was needed These are all changes I forgot to commit, I had intentions of commiting them but I didn't until now. Oops!
This commit is contained in:
parent
0d7aa6843b
commit
cddcce6db9
20 changed files with 380 additions and 226 deletions
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
{ ... }:
|
||||
let
|
||||
listFiles = dir: builtins.attrNames (builtins.readDir dir);
|
||||
in
|
||||
{
|
||||
imports = lib.pipe (builtins.readDir ./.) [
|
||||
(lib.filterAttrs (n: _v: n != "default.nix" && lib.last (lib.stringToCharacters n) != "~"))
|
||||
(lib.mapAttrsToList (n: _v: ./${n}))
|
||||
];
|
||||
imports = map (n: ./${n}) (builtins.filter (n: n != "default.nix") (listFiles ./.));
|
||||
}
|
||||
|
|
23
hosts/shared/mako.nix
Normal file
23
hosts/shared/mako.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.alqueva.programs.mako;
|
||||
|
||||
inherit (lib.options) mkEnableOption mkPackageOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
in
|
||||
{
|
||||
options.alqueva.programs.mako = {
|
||||
enable = mkEnableOption "mako";
|
||||
package = mkPackageOption pkgs "mako" { };
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue