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