mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
konawall for macOS
This commit is contained in:
parent
1659ee9ca2
commit
ba5647287f
6 changed files with 95 additions and 17 deletions
75
flake.lock
generated
75
flake.lock
generated
|
|
@ -186,6 +186,30 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"konawall-rs": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": [
|
||||||
|
"utils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"rust": "rust"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1690746910,
|
||||||
|
"narHash": "sha256-ouCKyuyjs9+oSrOpIBlVi6R5LLAu+kBORdEaCuDQxwM=",
|
||||||
|
"owner": "kittywitch",
|
||||||
|
"repo": "konawall-rs",
|
||||||
|
"rev": "17fc3098ffd993e4d1820da72b0866390484161b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "kittywitch",
|
||||||
|
"repo": "konawall-rs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"mach-nix": {
|
"mach-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": [
|
"flake-utils": [
|
||||||
|
|
@ -271,18 +295,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689679375,
|
"lastModified": 1683185507,
|
||||||
"narHash": "sha256-LHUC52WvyVDi9PwyL1QCpaxYWBqp4ir4iL6zgOkmcb8=",
|
"narHash": "sha256-Wcj09pigMFgj+0borXeoJvVMwH2Rc4gkSq4BwNq3k7s=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "684c17c429c42515bafb3ad775d2a710947f3d67",
|
"rev": "63464b8c2837ec56e1d610f5bd2a9b8e1f532c07",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-unstable",
|
"type": "indirect"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
|
|
@ -301,6 +323,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689679375,
|
||||||
|
"narHash": "sha256-LHUC52WvyVDi9PwyL1QCpaxYWBqp4ir4iL6zgOkmcb8=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "684c17c429c42515bafb3ad775d2a710947f3d67",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"poetry2nix": {
|
"poetry2nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
|
@ -349,10 +387,11 @@
|
||||||
"empty": "empty",
|
"empty": "empty",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"konawall-rs": "konawall-rs",
|
||||||
"mach-nix": "mach-nix",
|
"mach-nix": "mach-nix",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"pypi-deps-db": "pypi-deps-db",
|
"pypi-deps-db": "pypi-deps-db",
|
||||||
"scalpel": "scalpel",
|
"scalpel": "scalpel",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
|
|
@ -363,6 +402,24 @@
|
||||||
"wsl": "wsl"
|
"wsl": "wsl"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689281833,
|
||||||
|
"narHash": "sha256-+VQV7vtmrFNl5MEKASZ3Kc/y9J2ljEljbw500g5rb/E=",
|
||||||
|
"owner": "arcnmx",
|
||||||
|
"repo": "nixexprs-rust",
|
||||||
|
"rev": "ec3881a307d3b586b2942af40e7053c8b264300e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "arcnmx",
|
||||||
|
"repo": "nixexprs-rust",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scalpel": {
|
"scalpel": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,14 @@
|
||||||
inputs.std.follows = "std";
|
inputs.std.follows = "std";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
# konawall-rs
|
||||||
|
konawall-rs = {
|
||||||
|
url = "github:kittywitch/konawall-rs";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
flake-utils.follows = "utils";
|
||||||
|
};
|
||||||
|
};
|
||||||
# hardware quirks
|
# hardware quirks
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
# secrets
|
# secrets
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
std,
|
std,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.option) mkOption;
|
inherit (lib.options) mkOption;
|
||||||
inherit (lib.types) attrsOf str enum;
|
inherit (lib.types) attrsOf str enum;
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (std) string set tuple list;
|
inherit (std) string set tuple list;
|
||||||
|
|
@ -48,7 +48,7 @@ in {
|
||||||
src,
|
src,
|
||||||
}: let
|
}: let
|
||||||
variables = pkgs.writeText "base-variables.sass" ''
|
variables = pkgs.writeText "base-variables.sass" ''
|
||||||
${(string.concatSep "\n" (mapToValues (var: con: "\$${var}: ${con}") cfg.sass.variables))}
|
${(string.concatSep "\n" (set.mapToValues (var: con: "\$${var}: ${con}") cfg.sass.variables))}
|
||||||
'';
|
'';
|
||||||
source =
|
source =
|
||||||
pkgs.callPackage
|
pkgs.callPackage
|
||||||
|
|
|
||||||
11
overlays.nix
11
overlays.nix
|
|
@ -3,10 +3,11 @@
|
||||||
tree,
|
tree,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
[
|
map (path: import "${path}/overlay.nix") [
|
||||||
inputs.deploy-rs.overlay
|
|
||||||
(import tree.packages.default {inherit inputs tree;})
|
|
||||||
]
|
|
||||||
++ map (path: import "${path}/overlay.nix") [
|
|
||||||
inputs.arcexprs
|
inputs.arcexprs
|
||||||
]
|
]
|
||||||
|
++ [
|
||||||
|
inputs.deploy-rs.overlay
|
||||||
|
inputs.konawall-rs.overlays.default
|
||||||
|
(import tree.packages.default {inherit inputs tree;})
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,17 @@ _: let
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.kat = {
|
home-manager.users.kat = {
|
||||||
|
services.konawall = {
|
||||||
|
enable = true;
|
||||||
|
interval_macos = 3600;
|
||||||
|
mode = "shuffle";
|
||||||
|
commonTags = ["width:>=1600"];
|
||||||
|
tagList = [
|
||||||
|
"score:>=50"
|
||||||
|
#"no_humans"
|
||||||
|
"rating:s"
|
||||||
|
];
|
||||||
|
};
|
||||||
home.file.".orbstack/ssh/authorized_keys".text =
|
home.file.".orbstack/ssh/authorized_keys".text =
|
||||||
(string.concatSep "\n" tree.kat.user.data.keys)
|
(string.concatSep "\n" tree.kat.user.data.keys)
|
||||||
+ ''
|
+ ''
|
||||||
|
|
|
||||||
3
tree.nix
3
tree.nix
|
|
@ -74,6 +74,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
external = with inputs; [
|
external = with inputs; [
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
|
#konawall-rs.darwinModules.konawall
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -83,11 +84,11 @@
|
||||||
external = with inputs;
|
external = with inputs;
|
||||||
[
|
[
|
||||||
nix-index-database.hmModules.nix-index
|
nix-index-database.hmModules.nix-index
|
||||||
|
konawall-rs.hmModules.konawall
|
||||||
]
|
]
|
||||||
++ (with (import (inputs.arcexprs + "/modules")).home-manager; [
|
++ (with (import (inputs.arcexprs + "/modules")).home-manager; [
|
||||||
base16
|
base16
|
||||||
i3gopher
|
i3gopher
|
||||||
konawall
|
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue