mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Remove unused software
This commit is contained in:
parent
e2d7def990
commit
e330be9673
7 changed files with 71 additions and 718 deletions
702
flake.lock
generated
702
flake.lock
generated
File diff suppressed because it is too large
Load diff
18
flake.nix
18
flake.nix
|
|
@ -15,22 +15,11 @@
|
|||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||
colmena-flake.url = "github:juspay/colmena-flake";
|
||||
|
||||
# CI server
|
||||
nix-serve-ng.url = "github:aristanetworks/nix-serve-ng";
|
||||
nix-serve-ng.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
# Software inputs
|
||||
nixos-shell.url = "github:Mic92/nixos-shell";
|
||||
nixos-vscode-server.flake = false;
|
||||
nixos-vscode-server.url = "github:nix-community/nixos-vscode-server";
|
||||
emanote.url = "github:srid/emanote";
|
||||
nixpkgs-match.url = "github:srid/nixpkgs-match";
|
||||
nuenv.url = "github:DeterminateSystems/nuenv";
|
||||
nixd.url = "github:nix-community/nixd";
|
||||
nixci.url = "github:srid/nixci";
|
||||
nix-browser.url = "github:juspay/nix-browser";
|
||||
actual.url = "github:srid/actual";
|
||||
actual.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nix-index-database.url = "github:nix-community/nix-index-database";
|
||||
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
|
|
@ -118,10 +107,9 @@
|
|||
packages.default = self'.packages.activate;
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [ config.treefmt.build.devShell ];
|
||||
packages = [
|
||||
pkgs.nixos-rebuild
|
||||
pkgs.just
|
||||
pkgs.colmena
|
||||
packages = with pkgs; [
|
||||
just
|
||||
colmena
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,17 +21,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
# Open zellij by prompting for CWD
|
||||
(pkgs.nuenv.mkScript {
|
||||
name = "zux";
|
||||
script = ''
|
||||
let PRJ = (zoxide query -i)
|
||||
let NAME = ($PRJ | parse $"($env.HOME)/{relPath}" | get relPath | first | str replace -a / /)
|
||||
echo $"Launching zellij for ($PRJ)"
|
||||
cd $PRJ ; exec zellij attach -c $NAME
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
{ domain }:
|
||||
|
||||
{ pkgs, lib, config, flake, ... }:
|
||||
{
|
||||
imports = [
|
||||
flake.inputs.nix-serve-ng.nixosModules.default
|
||||
];
|
||||
|
||||
# Cache server
|
||||
# sops.secrets."cache-server/private-key".owner = "root";
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
secretKeyFile = config.sops.secrets."cache-server/private-key".path;
|
||||
};
|
||||
nix.settings.allowed-users = [ "nix-serve" ];
|
||||
nix.settings.trusted-users = [ "nix-serve" ];
|
||||
|
||||
# Web server
|
||||
services.nginx = {
|
||||
virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".extraConfig = ''
|
||||
proxy_pass http://localhost:${toString config.services.nix-serve.port};
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
{ pkgs, flake, ... }:
|
||||
let
|
||||
emanote = flake.inputs.emanote.outputs.defaultPackage.${pkgs.system};
|
||||
in
|
||||
{
|
||||
# Global service, rather than user service, as the latter doesn't work in NixOS-WSL
|
||||
systemd.services.emanote = {
|
||||
description = "Emanote ~/Documents/Notes";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
environment = {
|
||||
PORT = "7000";
|
||||
};
|
||||
serviceConfig = {
|
||||
User = flake.config.people.myself;
|
||||
Restart = "always";
|
||||
ExecStart = "${emanote}/bin/emanote -L /home/${flake.config.people.myself}/Documents/Notes";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -8,9 +8,6 @@
|
|||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
flake.inputs.nuenv.overlays.nuenv
|
||||
flake.inputs.nixd.overlays.default
|
||||
flake.inputs.nuenv.overlays.default
|
||||
(import flake.inputs.emacs-overlay)
|
||||
(import ../packages/overlay.nix { inherit flake; inherit (pkgs) system; })
|
||||
];
|
||||
|
|
@ -31,4 +28,3 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,4 @@ self: super: {
|
|||
sshuttle-via = self.callPackage ./sshuttle-via.nix { };
|
||||
nixci = flake.inputs.nixci.packages.${system}.default;
|
||||
nix-health = flake.inputs.nix-browser.packages.${system}.nix-health;
|
||||
actual = flake.inputs.actual.packages.${system}.default;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue