mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 21:43:54 -05:00
ran nixfmt to standardize formatting
This commit is contained in:
parent
a3257404ad
commit
b41949543e
10
flake.nix
10
flake.nix
|
@ -28,17 +28,17 @@
|
|||
};
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [
|
||||
"https://nixcache.raffauflabs.com"
|
||||
];
|
||||
extra-substituters = [ "https://nixcache.raffauflabs.com" ];
|
||||
extra-trusted-public-keys = [
|
||||
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
||||
];
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
|
||||
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable
|
||||
, home-manager-unstable, nixos-hardware, ... }: {
|
||||
|
||||
homeConfigurations."aly" = home-manager-unstable.lib.homeManagerConfiguration {
|
||||
homeConfigurations."aly" =
|
||||
home-manager-unstable.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||
modules = [ ./home/aly.nix ];
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ listener {
|
|||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
# listener {
|
||||
# timeout = 600 # 30min
|
||||
# on-timeout = systemctl suspend # suspend pc
|
||||
# }
|
||||
listener {
|
||||
timeout = 600 # 30min
|
||||
on-timeout = [[ $(hostname) != "mauville" ]] && systemctl suspend # suspend pc unless on mauville
|
||||
}
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
enable = true;
|
||||
xkb.layout = "us";
|
||||
xkb.variant = "";
|
||||
excludePackages = with pkgs; [
|
||||
xterm
|
||||
];
|
||||
excludePackages = with pkgs; [ xterm ];
|
||||
};
|
||||
|
||||
## Needed for Flatpaks
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include X settings.
|
||||
imports = [ # Include X settings.
|
||||
../desktop.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
# Need to change the order pam loads its modules
|
||||
# to get proper fingerprint behavior on GDM and the lockscreen.
|
||||
security.pam.services.login.fprintAuth = false;
|
||||
security.pam.services.gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) {
|
||||
security.pam.services.gdm-fingerprint =
|
||||
lib.mkIf (config.services.fprintd.enable) {
|
||||
text = ''
|
||||
auth required pam_shells.so
|
||||
auth requisite pam_nologin.so
|
||||
|
|
|
@ -45,7 +45,10 @@
|
|||
virtualHosts."nixcache.raffauflabs.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
||||
locations."/".proxyPass =
|
||||
"http://${config.services.nix-serve.bindAddress}:${
|
||||
toString config.services.nix-serve.port
|
||||
}";
|
||||
};
|
||||
|
||||
virtualHosts."plex.raffauflabs.com" = {
|
||||
|
|
|
@ -6,11 +6,8 @@
|
|||
ports = [ "0.0.0.0:13378:80" ];
|
||||
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
||||
environment = { TZ = "America/New_York"; };
|
||||
volumes = [
|
||||
"abs_config:/config"
|
||||
"abs_metadata:/metadata"
|
||||
"/mnt/Media:/Media"
|
||||
];
|
||||
volumes =
|
||||
[ "abs_config:/config" "abs_metadata:/metadata" "/mnt/Media:/Media" ];
|
||||
};
|
||||
plex-server = {
|
||||
ports = [ "0.0.0.0:32400:32400" ];
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
|
||||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
oci-containers = {
|
||||
backend = "podman";
|
||||
};
|
||||
oci-containers = { backend = "podman"; };
|
||||
podman = {
|
||||
# Required for containers under podman-compose to be able to talk to each other.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include X settings.
|
||||
imports = [ # Include X settings.
|
||||
./desktop.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
hardware.steam-hardware.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
remotePlay.openFirewall =
|
||||
true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall =
|
||||
true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include X settings.
|
||||
imports = [ # Include X settings.
|
||||
./desktop.nix
|
||||
];
|
||||
|
||||
services.xserver.displayManager = {
|
||||
sessionPackages = [ pkgs.sway ];
|
||||
};
|
||||
services.xserver.displayManager = { sessionPackages = [ pkgs.sway ]; };
|
||||
|
||||
programs.light.enable = true; # Brightness and volume control.
|
||||
programs.dconf.enable = true;
|
||||
|
|
Loading…
Reference in a new issue