mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
deadnix/formatting
This commit is contained in:
parent
4287d698b9
commit
9f8a1692b5
9 changed files with 57 additions and 54 deletions
|
@ -3,19 +3,19 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let inherit (lib) enabled;
|
||||
}: let
|
||||
inherit (lib) enabled;
|
||||
in {
|
||||
imports = with self.nixosModules; [
|
||||
restic
|
||||
];
|
||||
|
||||
oizys = {languages = [
|
||||
oizys = {
|
||||
languages = [
|
||||
"nim"
|
||||
"python"
|
||||
];
|
||||
docker = enabled;
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{self, lib, ...}: let inherit (lib) enabled; in {
|
||||
{
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) enabled;
|
||||
in {
|
||||
imports = with self.nixosModules; [
|
||||
nix-ld
|
||||
];
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) enabled enableAttrs;
|
||||
|
||||
inherit (lib) enableAttrs;
|
||||
in {
|
||||
imports = with self.nixosModules; [
|
||||
restic
|
||||
];
|
||||
|
||||
oizys = {
|
||||
oizys =
|
||||
{
|
||||
languages = [
|
||||
"misc"
|
||||
"python"
|
||||
|
@ -19,7 +19,8 @@ in {
|
|||
"tex"
|
||||
"node"
|
||||
];
|
||||
} // enableAttrs [
|
||||
}
|
||||
// enableAttrs [
|
||||
"chrome"
|
||||
"desktop"
|
||||
"docker"
|
||||
|
@ -27,13 +28,6 @@ in {
|
|||
"vbox"
|
||||
"vpn"
|
||||
];
|
||||
# nix-ld = enabled;
|
||||
# docker = enabled;
|
||||
# vbox = enabled;
|
||||
# desktop = enabled;
|
||||
# vpn = enabled;
|
||||
# chrome = enabled;
|
||||
# };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zk
|
||||
|
|
|
@ -6,9 +6,19 @@ in rec {
|
|||
disabled = {enable = false;};
|
||||
|
||||
# ["a" "b"] -> {a.enable = true; b.enable = true;}
|
||||
enableAttrs = attrs: builtins.listToAttrs (map (attr: {name = attr; value = enabled; }) attrs);
|
||||
enableAttrs = attrs:
|
||||
builtins.listToAttrs (map (attr: {
|
||||
name = attr;
|
||||
value = enabled;
|
||||
})
|
||||
attrs);
|
||||
# ["a" "b"] -> {a.enable = false; b.enable = false;}
|
||||
disableAttrs = attrs: builtins.listToAttrs (map (attr: {name = attr; value = disabled; }) attrs);
|
||||
disableAttrs = attrs:
|
||||
builtins.listToAttrs (map (attr: {
|
||||
name = attr;
|
||||
value = disabled;
|
||||
})
|
||||
attrs);
|
||||
|
||||
isNixFile = path: hasSuffix ".nix" path;
|
||||
mkIfIn = name: list: prev.mkIf (builtins.elem name list);
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption types literalExpression mdDoc;
|
||||
in {
|
||||
imports = [./nim.nix ./tex.nix ./misc.nix ./node.nix ./python.nix];
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs,
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
|
@ -9,7 +10,6 @@ in {
|
|||
options.oizys.docker.enable = mkEnableOption "enable docker support";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
lazydocker
|
||||
|
|
|
@ -9,7 +9,6 @@ in {
|
|||
options.oizys.vbox.enable = mkEnableOption "enable virtualbox host";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue