alejandra?
This commit is contained in:
parent
63baacc410
commit
21d7561a56
17 changed files with 296 additions and 204 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# freecad
|
||||
# pijul
|
||||
|
|
@ -33,6 +37,7 @@
|
|||
# nix
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
alejandra
|
||||
|
||||
# python
|
||||
pypy3
|
||||
|
|
|
|||
|
|
@ -26,15 +26,18 @@
|
|||
|
||||
users = {groups.game = {};};
|
||||
security.pam.loginLimits = [
|
||||
{ domain = "@game"; type = "-"; item = "nice"; value = -20; }
|
||||
{
|
||||
domain = "@game";
|
||||
type = "-";
|
||||
item = "nice";
|
||||
value = -20;
|
||||
}
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
environment.etc =
|
||||
let
|
||||
environment.etc = let
|
||||
json = pkgs.formats.json {};
|
||||
in
|
||||
{
|
||||
in {
|
||||
"pipewire/pipewire.conf.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.properties = {
|
||||
# default.allowed-rates = []
|
||||
|
|
|
|||
|
|
@ -1,33 +1,69 @@
|
|||
{...}: {
|
||||
services.rpcbind.enable = true;
|
||||
systemd.mounts =
|
||||
let
|
||||
systemd.mounts = let
|
||||
opts = {
|
||||
type = "cifs";
|
||||
mountConfig = {Options = "users,noauto,credentials=/etc/nixos/smb-secrets,noatime,uid=1000,gid=100";};
|
||||
};
|
||||
in
|
||||
[
|
||||
(opts // { what = "//100.97.47.81/anime"; where = "/mnt/uwuraid/anime"; })
|
||||
(opts // { what = "//100.97.47.81/appdata"; where = "/mnt/uwuraid/appdata"; })
|
||||
(opts // { what = "//100.97.47.81/backup"; where = "/mnt/uwuraid/backup"; })
|
||||
(opts // { what = "//100.97.47.81/everything"; where = "/mnt/uwuraid/everything"; })
|
||||
(opts // { what = "//100.97.47.81/isos"; where = "/mnt/uwuraid/isos"; })
|
||||
in [
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/anime";
|
||||
where = "/mnt/uwuraid/anime";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/appdata";
|
||||
where = "/mnt/uwuraid/appdata";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/backup";
|
||||
where = "/mnt/uwuraid/backup";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/everything";
|
||||
where = "/mnt/uwuraid/everything";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/isos";
|
||||
where = "/mnt/uwuraid/isos";
|
||||
})
|
||||
# (opts // { what = "//100.97.47.81/jellyfin"; where = "/mnt/uwuraid/jellyfin"; })
|
||||
(opts // { what = "//100.97.47.81/movies"; where = "/mnt/uwuraid/movies"; })
|
||||
(opts // { what = "//100.97.47.81/music"; where = "/mnt/uwuraid/music"; })
|
||||
(opts // { what = "//100.97.47.81/photos"; where = "/mnt/uwuraid/photos"; })
|
||||
(opts // { what = "//100.97.47.81/syncthing"; where = "/mnt/uwuraid/syncthing"; })
|
||||
(opts // { what = "//100.97.47.81/television"; where = "/mnt/uwuraid/television"; })
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/movies";
|
||||
where = "/mnt/uwuraid/movies";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/music";
|
||||
where = "/mnt/uwuraid/music";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/photos";
|
||||
where = "/mnt/uwuraid/photos";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/syncthing";
|
||||
where = "/mnt/uwuraid/syncthing";
|
||||
})
|
||||
(opts
|
||||
// {
|
||||
what = "//100.97.47.81/television";
|
||||
where = "/mnt/uwuraid/television";
|
||||
})
|
||||
];
|
||||
systemd.automounts =
|
||||
let
|
||||
systemd.automounts = let
|
||||
opts = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
automountConfig = {TimeoutIdleSec = "60";};
|
||||
};
|
||||
in
|
||||
[
|
||||
in [
|
||||
(opts // {where = "/mnt/uwuraid/anime";})
|
||||
(opts // {where = "/mnt/uwuraid/appdata";})
|
||||
(opts // {where = "/mnt/uwuraid/backup";})
|
||||
|
|
|
|||
12
flake.nix
12
flake.nix
|
|
@ -28,8 +28,16 @@
|
|||
};
|
||||
|
||||
# outputs = { self, nixpkgs, nixos-hardware, nixos-raspberrypi, home-manager, helix, aagl, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixos-hardware, nixos-raspberrypi, home-manager, helix, jujutsu, ... }@inputs:
|
||||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixos-hardware,
|
||||
nixos-raspberrypi,
|
||||
home-manager,
|
||||
helix,
|
||||
jujutsu,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations = {
|
||||
NOcomputer = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{ inputs, lib, pkgs, modulesPath, ... }: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# xorg.xkill
|
||||
bat
|
||||
|
|
|
|||
|
|
@ -60,8 +60,7 @@
|
|||
};
|
||||
swapDevices = [{device = "/dev/disk/by-uuid/ca0ed3d7-8758-4ac7-b016-8b4cd9608ded";}];
|
||||
|
||||
services.snapper.configs =
|
||||
{
|
||||
services.snapper.configs = {
|
||||
home = {
|
||||
SUBVOLUME = "/home";
|
||||
ALLOW_USERS = ["tao"];
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
# wantedBy = [ "default.target" ];
|
||||
# };
|
||||
|
||||
|
||||
# SUBSYSTEM=="backlight", GROUP="video", MODE="0664"
|
||||
services.udev.extraRules = ''
|
||||
# Ethernet expansion card
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@
|
|||
VISUAL = "hx";
|
||||
SKIM_DEFAULT_COMMAND = "rg --files";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
users.users.tao.packages = with pkgs; [
|
||||
libsForQt5.kdeconnect-kde
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ inputs, config, pkgs, ... }: {
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
users.users.tao.packages = with pkgs; [
|
||||
# birdtray
|
||||
# cider
|
||||
|
|
@ -114,5 +119,5 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.verbose = true;
|
||||
home-manager.backupFileExtension = ".hm-bak";
|
||||
home-manager.users.tao = (import ./tao/home.nix { inherit inputs pkgs; });
|
||||
home-manager.users.tao = import ./tao/home.nix {inherit inputs pkgs;};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.helix = {
|
||||
settings = {
|
||||
theme = "dracula";
|
||||
|
|
@ -44,13 +48,40 @@
|
|||
command = "clang-format";
|
||||
args = ["--style=file:/home/tao/Templates/clang-format"];
|
||||
};
|
||||
indent = { tab-width = 8; unit = "\t"; };
|
||||
indent = {
|
||||
tab-width = 8;
|
||||
unit = "\t";
|
||||
};
|
||||
}
|
||||
# { name = "css"; comment = "/*"; }
|
||||
{ name = "html"; auto-format = false; indent = { tab-width = 4; unit = "\t"; }; }
|
||||
{ name = "java"; auto-format = true; indent = { tab-width = 4; unit = "\t"; }; }
|
||||
{ name = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; }
|
||||
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
||||
{
|
||||
name = "html";
|
||||
auto-format = false;
|
||||
indent = {
|
||||
tab-width = 4;
|
||||
unit = "\t";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "java";
|
||||
auto-format = true;
|
||||
indent = {
|
||||
tab-width = 4;
|
||||
unit = "\t";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
formatter = {command = "alejandra";};
|
||||
}
|
||||
{
|
||||
name = "typst";
|
||||
indent = {
|
||||
tab-width = 4;
|
||||
unit = " ";
|
||||
};
|
||||
}
|
||||
# { name = "rust"; }
|
||||
];
|
||||
language-servers = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(import ./helix.nix {inherit pkgs inputs;})
|
||||
# ./hyprland.nix
|
||||
|
|
@ -13,8 +17,7 @@
|
|||
name = "Tao Tien";
|
||||
email = "29749622+taotien@users.noreply.github.com";
|
||||
};
|
||||
ui =
|
||||
{
|
||||
ui = {
|
||||
default-command = "log";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
users.users.vy.packages = with pkgs; [
|
||||
|
||||
];
|
||||
|
||||
users.users.vy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue