Use common module
Remove shelvacu's flake from inputs Remove sm64coopdx
This commit is contained in:
parent
cae6d2cb09
commit
e6ad5687d0
3 changed files with 83 additions and 1980 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, inputs, secrets, ... }:
|
{ pkgs, secrets, phps, ... }:
|
||||||
let
|
let
|
||||||
fortune = pkgs.writeShellScript "cgi" ''
|
fortune = pkgs.writeShellScript "cgi" ''
|
||||||
echo "Content-type: text/html"
|
echo "Content-type: text/html"
|
||||||
|
|
@ -21,7 +21,6 @@ in {
|
||||||
"fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE="
|
"fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE="
|
||||||
"nixcache.shelvacu.com:73u5ZGBpPRoVZfgNJQKYYBt9K9Io/jPwgUfuOLsJbsM="
|
"nixcache.shelvacu.com:73u5ZGBpPRoVZfgNJQKYYBt9K9Io/jPwgUfuOLsJbsM="
|
||||||
];
|
];
|
||||||
trusted-users = [ "@wheel" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
@ -30,18 +29,7 @@ in {
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.nettika = {
|
environment.variables.VISUAL = "code --wait";
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
|
||||||
shell = pkgs.fish;
|
|
||||||
};
|
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
EDITOR = "nano";
|
|
||||||
VISUAL = "code --wait";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "marauder";
|
hostName = "marauder";
|
||||||
|
|
@ -95,9 +83,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment.systemPackages = with pkgs; [
|
||||||
systemPackages = [ inputs.shelvacu.packages.x86_64-linux.sm64coopdx ]
|
|
||||||
++ (with pkgs; [
|
|
||||||
# Chat clients
|
# Chat clients
|
||||||
discord
|
discord
|
||||||
slack
|
slack
|
||||||
|
|
@ -128,7 +114,7 @@ in {
|
||||||
|
|
||||||
# Dev Tools
|
# Dev Tools
|
||||||
nixd
|
nixd
|
||||||
nixfmt
|
nixfmt-classic
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
pyenv
|
pyenv
|
||||||
rustup
|
rustup
|
||||||
|
|
@ -153,8 +139,7 @@ in {
|
||||||
mullvad-vpn
|
mullvad-vpn
|
||||||
qbittorrent
|
qbittorrent
|
||||||
system-config-printer
|
system-config-printer
|
||||||
]);
|
];
|
||||||
};
|
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -162,48 +147,6 @@ in {
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
lfs.enable = true;
|
|
||||||
config = {
|
|
||||||
init.defaultBranch = "master";
|
|
||||||
user = {
|
|
||||||
email = "git@nettika.cat";
|
|
||||||
name = "Nettika";
|
|
||||||
};
|
|
||||||
credential.helper = "store";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.nano = {
|
|
||||||
enable = true;
|
|
||||||
nanorc = ''
|
|
||||||
set autoindent
|
|
||||||
set linenumbers
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.fish = {
|
|
||||||
enable = true;
|
|
||||||
promptInit = ''
|
|
||||||
function fish_prompt
|
|
||||||
echo -n '💜 '
|
|
||||||
set_color brgreen
|
|
||||||
echo -n (prompt_pwd)
|
|
||||||
set_color normal
|
|
||||||
echo -n ' > '
|
|
||||||
end
|
|
||||||
function fish_right_prompt
|
|
||||||
set_color bryellow
|
|
||||||
echo -n (git branch --show-current 2>/dev/null)
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
shellInit = ''
|
|
||||||
set -g fish_greeting
|
|
||||||
set -g fish_prompt_pwd_full_dirs 999
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
|
|
||||||
programs.ssh.extraConfig = ''
|
programs.ssh.extraConfig = ''
|
||||||
|
|
@ -213,10 +156,6 @@ in {
|
||||||
|
|
||||||
Host monolith
|
Host monolith
|
||||||
HostName 10.243.210.154
|
HostName 10.243.210.154
|
||||||
|
|
||||||
Host fennbox
|
|
||||||
HostName 10.243.109.199
|
|
||||||
User fenn
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
|
|
@ -227,7 +166,7 @@ in {
|
||||||
services.httpd = {
|
services.httpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePHP = true;
|
enablePHP = true;
|
||||||
phpPackage = inputs.phps.packages.x86_64-linux.php80;
|
phpPackage = phps.packages.x86_64-linux.php80;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
ScriptAlias /fortune ${fortune}/bin/fortune
|
ScriptAlias /fortune ${fortune}/bin/fortune
|
||||||
'';
|
'';
|
||||||
|
|
@ -237,7 +176,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nix-ld = { enable = true; };
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -274,6 +213,8 @@ in {
|
||||||
package = pkgs.mullvad-vpn; # Include GUI
|
package = pkgs.mullvad-vpn; # Include GUI
|
||||||
};
|
};
|
||||||
|
|
||||||
|
promptSymbol = "💜";
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
|
||||||
1872
flake.lock
generated
1872
flake.lock
generated
File diff suppressed because it is too large
Load diff
18
flake.nix
18
flake.nix
|
|
@ -3,17 +3,21 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
shelvacu.url = "git+https://git.uninsane.org/shelvacu/nix-stuff";
|
phps = {
|
||||||
phps.url = "github:fossar/nix-phps";
|
url = "github:fossar/nix-phps";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
common.url = "git+https://git.uninsane.org/nettika/nettika-common";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { nixpkgs, phps, common, ... }: {
|
||||||
let secrets = builtins.fromJSON (builtins.readFile ./secrets.json);
|
|
||||||
in {
|
|
||||||
nixosConfigurations.marauder = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.marauder = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./configuration.nix ];
|
modules = [ ./configuration.nix common.nixosModule ];
|
||||||
specialArgs = { inherit self inputs secrets; };
|
specialArgs = {
|
||||||
|
inherit phps;
|
||||||
|
secrets = builtins.fromJSON (builtins.readFile ./secrets.json);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue