linted
This commit is contained in:
atagen 2025-02-02 16:57:31 +11:00
parent 4e99a0e323
commit 7485de646a
95 changed files with 2743 additions and 2282 deletions

View file

@ -2,7 +2,8 @@
pkgs,
lib,
...
}: {
}:
{
# perlless activations
boot.initrd.systemd.enable = true;
# breaks everything
@ -18,7 +19,7 @@
programs.command-not-found.enable = false;
boot.enableContainers = false;
boot.loader.grub.enable = false;
environment.defaultPackages = lib.mkDefault [];
environment.defaultPackages = lib.mkDefault [ ];
documentation.info.enable = false;
# no cppnix .. ?

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
services.desktopManager.cosmic = {
enable = true;
};

View file

@ -1,4 +1,5 @@
{...}: {
_:
{
programs.culr = {
enable = true;
pattern = "rainbow-split";

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
man-pages
man-pages-posix

View file

@ -2,7 +2,8 @@
lib,
pkgs,
...
}: let
}:
let
# gives some output like:
# Address = [
# "10.10.10.10/32"
@ -24,8 +25,14 @@
# PublicKey = [
# "xxx"
# ];
inherit (lib) mapAttrs' mapAttrs mapAttrsToList listToAttrs splitString filter filterAttrs length head last;
inherit (builtins) readFile readDir;
inherit (lib)
mapAttrsToList
listToAttrs
splitString
filterAttrs
head
;
inherit (builtins) readDir;
# parseMullvad = file: {
# name = head (splitString "." file);
# value = listToAttrs (map (entry: {
@ -38,24 +45,19 @@
# };
# definitions =
# map parseMullvad (getFiles ../../mullvad);
getFiles = path:
mapAttrsToList (n: v: n)
(filterAttrs (n: v: v == "regular")
(readDir path));
in {
environment.systemPackages = [pkgs.wireguard-tools.out];
networking.wg-quick.interfaces = listToAttrs (map (f: rec {
getFiles = path: mapAttrsToList (n: _v: n) (filterAttrs (_n: v: v == "regular") (readDir path));
in
{
environment.systemPackages = [ pkgs.wireguard-tools.out ];
networking.wg-quick.interfaces = listToAttrs (
map (f: rec {
name = head (splitString "." f);
value = {
autostart =
if (name == "au-syd-wg-101")
then true
else false;
autostart = if (name == "au-syd-wg-101") then true else false;
configFile = builtins.toString ../../mullvad/${f};
};
})
(getFiles
../../mullvad));
}) (getFiles ../../mullvad)
);
# listToAttrs (map ({
# name,
# value,

View file

@ -1,4 +1,5 @@
{pkgs,...}: {
{ ... }:
{
# imports = [
# ./mullvad.nix
# ];
@ -6,7 +7,11 @@
systemd.services.NetworkManager-wait-online.enable = true; # for some reason nm doesn't enable without this
services.resolved = {
enable = true;
fallbackDns = ["103.1.206.179" "168.138.8.38" "168.138.12.137"];
fallbackDns = [
"103.1.206.179"
"168.138.8.38"
"168.138.12.137"
];
dnssec = "false";
};
services.mullvad-vpn.enable = true;

View file

@ -1,19 +1,23 @@
{
pkgs,
lib,
mainUser,
...
}: {
}:
{
services.greetd = {
enable = true;
restart = false;
settings = let session = {
command = "niri-session";
user = "${mainUser}";
}; in {
default_session = session;
initial_session = session;
};
settings =
let
session = {
command = "niri-session";
user = "${mainUser}";
};
in
{
default_session = session;
initial_session = session;
};
};
programs.niri = {
enable = true;

View file

@ -1,8 +1,11 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# nixd
home-manager
cachix
alejandra
nixfmt-rfc-style
nil
statix
deadnix
];
}

View file

@ -1,4 +1,5 @@
{...}: {
_:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;

View file

@ -1,10 +1,8 @@
{
lib,
pkgs,
stable-diffusion,
automatic-webui,
...
}: {
}:
{
systemd.services.stable-diffusion = {
description = "stable diffusion + AUTOMATIC1111 ui";
serviceConfig = {

View file

@ -1,6 +1,7 @@
{...}: {
_:
{
time.timeZone = "Australia/Sydney";
time.hardwareClockInLocalTime = false;
i18n.defaultLocale = "en_AU.UTF-8";
i18n.supportedLocales = ["en_AU.UTF-8/UTF-8"];
i18n.supportedLocales = [ "en_AU.UTF-8/UTF-8" ];
}

View file

@ -1,4 +1,5 @@
{...}: {
_:
{
boot.loader.systemd-boot.consoleMode = "max";
boot.loader.timeout = 3;
boot.loader.systemd-boot.enable = true;

View file

@ -1,13 +1,15 @@
{pkgs, ...}: let
{ pkgs, ... }:
let
inherit (pkgs) murex zsh elvish;
in {
environment.pathsToLink = ["/share/zsh"];
in
{
environment.pathsToLink = [ "/share/zsh" ];
programs.zsh.enable = true;
environment.systemPackages = [
murex
elvish
];
environment.shells = [murex];
environment.shells = [ murex ];
users.defaultUserShell = murex;
# users.defaultUserShell = zsh;
console = {