pull/73/head
Vivian 2022-09-13 14:43:23 +02:00
parent 551caf5221
commit 2d0500eab4
4 changed files with 41 additions and 42 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
result result
.direnv .direnv
.gcroots

View File

@ -67,7 +67,7 @@
"deploy-rs": { "deploy-rs": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_3",
"utils": "utils_4" "utils": "utils_4"
}, },
"locked": { "locked": {
@ -384,11 +384,11 @@
"wlroots": "wlroots" "wlroots": "wlroots"
}, },
"locked": { "locked": {
"lastModified": 1662922102, "lastModified": 1663064996,
"narHash": "sha256-5OZiMlsmN1SISveS0dsuuu38RX6k4QjcZoKmZFWplFw=", "narHash": "sha256-gw5AnClp+pm7Qd35QpjYHulz4b0P1j+AW6o6974PIbs=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "b49d7007b57a4890d63262fa031cf63ee09e0ed0", "rev": "7d4f0a319943f56b1a277ceae198fc3f77615afe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -472,11 +472,11 @@
"utils": "utils_3" "utils": "utils_3"
}, },
"locked": { "locked": {
"lastModified": 1662966897, "lastModified": 1663034396,
"narHash": "sha256-ZMxjO9eGPj/NnqqzNwaJQV7zwxOtYhm5bEW3u4isziE=", "narHash": "sha256-ySk0Jnsndl/XEHV7daBwUpstZzaiWAlFDmFyPa847do=",
"owner": "jyooru", "owner": "jyooru",
"repo": "nix-minecraft-servers", "repo": "nix-minecraft-servers",
"rev": "0812eb875aa86bd0da8eb27c30f4a96ecddd1406", "rev": "c796808005d9fa678ca4f2efd4fa835b1679caf1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -509,7 +509,7 @@
"nix": { "nix": {
"inputs": { "inputs": {
"lowdown-src": "lowdown-src", "lowdown-src": "lowdown-src",
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1633098935, "lastModified": 1633098935,
@ -550,7 +550,7 @@
"nix_2": { "nix_2": {
"inputs": { "inputs": {
"lowdown-src": "lowdown-src_2", "lowdown-src": "lowdown-src_2",
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1633098935, "lastModified": 1633098935,
@ -583,11 +583,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1662940775, "lastModified": 1663047086,
"narHash": "sha256-SIgHTMjM+PqXWaXDzXsy/XmrDuTu7zpPvizgS7C9n+M=", "narHash": "sha256-gAKeS/8PgVjeBiYiPN0HzKx8GAC4eohHwnrzvDGpNEg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "faa93c4e19e79e7a6de31d6d3492b8f00760ca82", "rev": "bcc5b8857ff078188c738c19b2600c5fcc040632",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -598,22 +598,6 @@
} }
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": {
"lastModified": 1662099760,
"narHash": "sha256-MdZLCTJPeHi/9fg6R9fiunyDwP3XHJqDd51zWWz9px0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "67e45078141102f45eff1589a831aeaa3182b41e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1648219316, "lastModified": 1648219316,
"narHash": "sha256-Ctij+dOi0ZZIfX5eMhgwugfvB+WZSrvVNAyAuANOsnQ=", "narHash": "sha256-Ctij+dOi0ZZIfX5eMhgwugfvB+WZSrvVNAyAuANOsnQ=",
@ -629,7 +613,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1632864508, "lastModified": 1632864508,
"narHash": "sha256-d127FIvGR41XbVRDPVvozUPQ/uRHbHwvfyKHwEt5xFM=", "narHash": "sha256-d127FIvGR41XbVRDPVvozUPQ/uRHbHwvfyKHwEt5xFM=",
@ -644,7 +628,7 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_6": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1632864508, "lastModified": 1632864508,
"narHash": "sha256-d127FIvGR41XbVRDPVvozUPQ/uRHbHwvfyKHwEt5xFM=", "narHash": "sha256-d127FIvGR41XbVRDPVvozUPQ/uRHbHwvfyKHwEt5xFM=",
@ -707,14 +691,16 @@
"inputs": { "inputs": {
"fenix": "fenix", "fenix": "fenix",
"naersk": "naersk", "naersk": "naersk",
"nixpkgs": "nixpkgs_3" "nixpkgs": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1662744797, "lastModified": 1663003161,
"narHash": "sha256-raV+TEPsy8JK4ELgGoQZ96JkbnfDbfywVSZuTrtZ9eI=", "narHash": "sha256-Og3MM2+Cwz82sRV3AgU5vPRf+QdeFDhG1zv+DMLqagk=",
"owner": "DeterminateSystems", "owner": "DeterminateSystems",
"repo": "riff", "repo": "riff",
"rev": "73d62f3a0d8410a35b9b2d6d391468e2cce1d55b", "rev": "fca05c4d80dcd12cbb0d65681279729489a92e68",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -8,7 +8,6 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
colmena.url = "github:zhaofengli/colmena"; colmena.url = "github:zhaofengli/colmena";
colmena.inputs.nixpkgs.follows = "nixpkgs"; colmena.inputs.nixpkgs.follows = "nixpkgs";
@ -29,18 +28,29 @@
hyprpaper.inputs.nixpkgs.follows = "nixpkgs"; hyprpaper.inputs.nixpkgs.follows = "nixpkgs";
riff.url = "github:DeterminateSystems/riff"; riff.url = "github:DeterminateSystems/riff";
riff.inputs.nixpkgs.follows = "nixpkgs";
webcord.url = "github:fufexan/webcord-flake"; webcord.url = "github:fufexan/webcord-flake";
webcord.inputs.nixpkgs.follows = "nixpkgs"; webcord.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs =
{ self, nixpkgs, vault-secrets, serokell-nix, minecraft-servers, colmena, home-manager, hyprpaper, hyprland, riff, ... }@inputs: { self
, nixpkgs
, vault-secrets
, serokell-nix
, minecraft-servers
, colmena
, home-manager
, hyprpaper
, hyprland
, ...
} @ inputs:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
inherit (builtins) filter mapAttrs attrValues concatLists; inherit (builtins) filter mapAttrs attrValues concatLists;
util = import ./util.nix inputs; util = import ./util.nix inputs;
system = "x86_64-linux"; system = "x86_64-linux";
# import and add realm to list of tags # import and add realm to list of tags
@ -63,7 +73,7 @@
# Script to apply local colmena deployments # Script to apply local colmena deployments
apply-local = pkgs.writeScriptBin "apply-local" '' apply-local = pkgs.writeScriptBin "apply-local" ''
#!${pkgs.stdenv.shell} #!${pkgs.stdenv.shell}
"${colmena.packages.x86_64-linux.colmena}"/bin/colmena apply-local --sudo $@ "${colmena.packages.${system}.colmena}"/bin/colmena apply-local --sudo $@
''; '';
in in
{ {
@ -80,15 +90,15 @@
} }
nixHosts; nixHosts;
packages.x86_64-linux.default = colmena.packages.x86_64-linux.colmena; packages.${system}.default = colmena.packages.${system}.colmena;
packages.x86_64-linux.apply-local = apply-local; packages.${system}.apply-local = apply-local;
# Use by running `nix develop` # Use by running `nix develop`
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
VAULT_ADDR = "http://vault.olympus:8200/"; VAULT_ADDR = "http://vault.olympus:8200/";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
apply-local apply-local
colmena.packages.x86_64-linux.colmena colmena.packages.${system}.colmena
fluxcd fluxcd
k9s k9s
kubectl kubectl

View File

@ -235,6 +235,8 @@ in
authFile = "/etc/u2f-mappings"; # use `pamu2fcfg` from `pkgs.pam_u2f` to generate this config authFile = "/etc/u2f-mappings"; # use `pamu2fcfg` from `pkgs.pam_u2f` to generate this config
}; };
services.udev.packages = [ pkgs.qmk-udev-rules ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave