This commit is contained in:
Daniel Flanagan 2023-07-27 13:32:23 -05:00
parent 2bee29889e
commit c685350d50
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -2,17 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running 'nixos-help'). # and in the NixOS manual (accessible by running 'nixos-help').
{ pkgs, ... }: { pkgs, ... }: {
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
imports = imports = [
[ # <sops-nix/modules/sops>
# <sops-nix/modules/sops> ./beefcake-hardware.nix
./beefcake-hardware.nix ];
];
sops = { sops = {
defaultSopsFile = ../secrets/example.yaml; defaultSopsFile = ../secrets/example.yaml;
@ -40,7 +35,7 @@ in
# for use as a user password # for use as a user password
# neededForUsers = true; # neededForUsers = true;
}; };
"myservice/my_subdir/my_secret" = {}; "myservice/my_subdir/my_secret" = { };
}; };
}; };
@ -136,8 +131,8 @@ in
# search for packages: `nix search $PACKAGE_NAME` # search for packages: `nix search $PACKAGE_NAME`
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
unstable.helix helix
unstable.zellij zellij
mosh mosh
btrfs-progs btrfs-progs
iperf3 iperf3
@ -312,7 +307,7 @@ in
dataDir = "/storage/postgres"; dataDir = "/storage/postgres";
enableTCPIP = true; enableTCPIP = true;
package = unstable.postgresql_15; package = pkgs.postgresql_15;
authentication = pkgs.lib.mkOverride 10 '' authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method #type database DBuser auth-method
@ -347,7 +342,6 @@ in
services.tailscale = { services.tailscale = {
enable = true; enable = true;
package = unstable.tailscale;
}; };
services.jellyfin = { services.jellyfin = {
@ -548,5 +542,4 @@ in
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment? system.stateVersion = "22.05"; # Did you read the comment?
} }