Compare commits

...

11 Commits

12 changed files with 314 additions and 669 deletions

View File

@ -64,4 +64,10 @@ vless://{uuid}@{server_ip}:{server_port}?encryption=none&flow=xtls-rprx-vision&s
ssh-to-pgp -i $HOME/.ssh/id_rsa -o ~/nixos-config/keys/users/ataraxia.asc
ssh root@ip "cat /etc/ssh/ssh_host_rsa_key" | ssh-to-pgp -o ~/nixos-config/keys/hosts/hostname.asc
```
```
* remove all github workflows
```bash
gh run list --limit 100 --json databaseId -q '.[].databaseId' | xargs -IID gh api --silent "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" -X DELETE
```

859
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
lix-module = {
# url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
url = "https://github.com/AtaraxiaSjel/lix-nixos-module/archive/fix-2.91.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
@ -34,7 +39,6 @@
catppuccin.url = "github:catppuccin/nix";
catppuccin-vsc.url = "github:catppuccin/vscode";
deploy-rs.url = "github:serokell/deploy-rs";
devenv.url = "github:cachix/devenv";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
@ -107,6 +111,7 @@
{ device = name; mainuser = "ataraxia"; }
{ nixpkgs.config.allowUnfree = true; }
inputs.sops-nix.nixosModules.sops
inputs.lix-module.nixosModules.default
];
specialArgs = { inherit self inputs self-nixpkgs; secrets = ./secrets; };
};

View File

@ -27,12 +27,12 @@
./nginx.nix
../Home-Hypervisor/usb-hdd.nix
inputs.chaotic.nixosModules.default
# inputs.chaotic.nixosModules.default
];
chaotic.mesa-git.enable = true;
chaotic.mesa-git.fallbackSpecialisation = true;
chaotic.mesa-git.method = "GBM_BACKENDS_PATH";
# chaotic.mesa-git.enable = true;
# chaotic.mesa-git.fallbackSpecialisation = true;
# chaotic.mesa-git.method = "GBM_BACKENDS_PATH";
networking.extraHosts = ''
127.0.0.1 code.ataraxiadev.com
@ -132,32 +132,36 @@
home-manager.users.${config.mainuser} = {
home.packages = [
inputs.nixos-generators.packages.${pkgs.hostPlatform.system}.nixos-generate
pkgs.prismlauncher
pkgs.piper
pkgs.nix-alien
# pkgs.nix-init
pkgs.nixpkgs-review
pkgs.anydesk
pkgs.winbox
pkgs.devenv
pkgs.radeontop
pkgs.wayvnc
pkgs.distrobox
pkgs.nix-fast-build
pkgs.mitmproxy
pkgs.exercism
pkgs.packwiz
pkgs.streamrip
pkgs.nh
pkgs.nix-alien
pkgs.nix-diff
pkgs.dig.dnsutils
pkgs.nix-eval-jobs
pkgs.nix-fast-build
# pkgs.nix-init
pkgs.nix-update
pkgs.nixfmt-rfc-style
pkgs.nixos-anywhere
pkgs.nixpkgs-review
pkgs.anydesk
pkgs.arduino-ide
pkgs.dig.dnsutils
pkgs.distrobox
pkgs.exercism
pkgs.kdePackages.merkuro
pkgs.libsForQt5.ark
pkgs.libsForQt5.dolphin
pkgs.nh
pkgs.yt-archivist
pkgs.mitmproxy
pkgs.modprobed-db
pkgs.nixos-anywhere
pkgs.arduino-ide
pkgs.packwiz
pkgs.piper
pkgs.prismlauncher
pkgs.radeontop
pkgs.streamrip
pkgs.wayvnc
pkgs.winbox
pkgs.yt-archivist
];
xdg.configFile."distrobox/distrobox.conf".text = ''
container_always_pull="1"

View File

@ -1,6 +1,6 @@
{ modulesPath, lib, inputs, pkgs, config, ... }: {
imports = with inputs.self; [
"${toString modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
"${toString modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5-new-kernel.nix"
# "${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"
];
@ -38,7 +38,6 @@
"https://nixpkgs-wayland.cachix.org"
"https://hyprland.cachix.org"
"https://ataraxiadev-foss.cachix.org"
"https://cache.ataraxiadev.com/ataraxiadev"
"https://numtide.cachix.org"
];
trusted-public-keys = [
@ -47,7 +46,6 @@
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"ataraxiadev-foss.cachix.org-1:ws/jmPRUF5R8TkirnV1b525lP9F/uTBsz2KraV61058="
"ataraxiadev:V/fCdvz1bMsQzYZcLltcAULST+MoChv53EfedmyJ8Uw="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];
trusted-users = [ "root" config.mainuser "@wheel" ];
@ -80,5 +78,7 @@
];
users.users.root.openssh.authorizedKeys.keys = config.users.users.nixos.openssh.authorizedKeys.keys;
isoImage.squashfsCompression = "zstd -Xcompression-level 3";
};
}

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, inputs, ... }: {
nix = {
package = pkgs.lix;
# package = pkgs.lix;
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
registry.self.flake = inputs.self;
# registry.nixpkgs.flake = inputs.nixpkgs;

View File

@ -0,0 +1,13 @@
diff --git a/src/libutil/current-process.cc b/src/libutil/current-process.cc
index 352a6a0..7435f58 100644
--- a/src/libutil/current-process.cc
+++ b/src/libutil/current-process.cc
@@ -35,6 +35,8 @@ unsigned int getMaxCPU()
auto cpuMax = readFile(cpuFile);
auto cpuMaxParts = tokenizeString<std::vector<std::string>>(cpuMax, " \n");
+ if (cpuMaxParts.size() != 2)
+ return 0;
auto quota = cpuMaxParts[0];
auto period = cpuMaxParts[1];
if (quota != "max")

View File

@ -14,7 +14,7 @@ let
'';
in {
home-manager.users.${config.mainuser} = {
home.packages = [ pkgs.attic ];
home.packages = [ pkgs.attic-client ];
nix.settings = {
substituters = config.nix.settings.substituters;
trusted-public-keys = config.nix.settings.trusted-public-keys;

View File

@ -140,12 +140,12 @@ in
"formatting" = {
"command" = ["${pkgs.nixfmt-rfc-style}/bin/nixfmt"];
};
"nix" = {
"maxMemoryMB" = 4096;
"flake" = {
"autoEvalInputs" = true;
};
};
# "nix" = {
# "maxMemoryMB" = 4096;
# "flake" = {
# "autoEvalInputs" = true;
# };
# };
};
"nixd" = {
"formatting" = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, inputs, self-nixpkgs, ... }: {
nix = {
package = pkgs.lix;
# package = pkgs.lix;
nixPath = [ "self=/etc/self" "nixpkgs=/etc/nixpkgs" ];
registry.nixpkgs.flake = self-nixpkgs;

View File

@ -17,11 +17,10 @@ with lib; {
inputs.deploy-rs.overlay
(final: prev:
{
attic = inputs.attic.packages.${system}.attic;
attic-static = inputs.attic.packages.${system}.attic-static;
attic-client = inputs.attic.packages.${system}.attic;
attic-server = inputs.attic.packages.${system}.attic-server;
cassowary-py = inputs.cassowary.packages.${system}.cassowary;
devenv = inputs.devenv.packages.${system}.devenv;
nix = prev.lix;
# nix = prev.lix;
nix-alien = inputs.nix-alien.packages.${system}.nix-alien;
nix-fast-build = inputs.nix-fast-build.packages.${system}.default;
nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update;
@ -39,6 +38,17 @@ with lib; {
wine = prev.wineWow64Packages.stagingFull;
intel-vaapi-driver = prev.intel-vaapi-driver.override { enableHybridCodec = true; };
haskellPackages = prev.haskellPackages.override {
overrides = _hFinal: hPrev: {
# TODO: remove after cachix starts to use nix > v2.21
cachix = let
nix-fixed = prev.nixVersions.nix_2_19.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches ++ [ ../patches/fix-nix-2.19.patch ];
});
in hPrev.cachix.override { nix = nix-fixed; };
};
};
modprobed-db = prev.modprobed-db.overrideAttrs (oa: {
postPatch = (oa.postPatch or "") + ''
substituteInPlace ./common/modprobed-db.in \

View File

@ -63,14 +63,12 @@ in with config.deviceSpecific; with lib; {
monitor=,highres,auto,1
''}
general {
apply_sens_to_raw=false
border_size=1
no_border_on_floating=false
gaps_in=6
gaps_out=16
col.active_border=0xAA${thm.base08-hex}
col.inactive_border=0xAA${thm.base0A-hex}
sensitivity=1
col.nogroup_border=0xCC${thm.base0A-hex}
col.nogroup_border_active=0xAA${thm.base08-hex}
}