mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
Compare commits
33 Commits
49a341d6b3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
8a6ac1a533
|
|||
|
c009f2be73
|
|||
|
8ef160a991
|
|||
|
c179b45ac1
|
|||
|
ac750098b1
|
|||
|
75ecf511e6
|
|||
|
e48e2903ac
|
|||
|
69882de18a
|
|||
|
e1632cb506
|
|||
|
43b3be09e5
|
|||
|
f960a5eb04
|
|||
|
23dfd5b998
|
|||
|
2b3e4661b3
|
|||
|
cdce741599
|
|||
|
e520cf6767
|
|||
|
30e33cb768
|
|||
|
dc750c6bfe
|
|||
|
80469632b1
|
|||
|
9bb2e1f11d
|
|||
|
3b9774a20d
|
|||
| 932bf56972 | |||
|
dedda22aea
|
|||
|
ef09a8a5d4
|
|||
|
51c6925364
|
|||
|
dbd2353273
|
|||
|
b6aa11fb56
|
|||
|
f08e67c36e
|
|||
|
bd977c0941
|
|||
|
e6ffe8698f
|
|||
|
ac3a0404bc
|
|||
|
cba375a888
|
|||
|
acb825e1db
|
|||
|
344d8bdd4a
|
@@ -17,7 +17,7 @@
|
|||||||
- [Hosts](#hosts)
|
- [Hosts](#hosts)
|
||||||
- [Components](#components)
|
- [Components](#components)
|
||||||
- [Showcase](#showcase)
|
- [Showcase](#showcase)
|
||||||
- [Pain](#spent-weeks-on-this-system-configuration-)
|
- [Pain](#spent-months-on-this-system-configuration-)
|
||||||
|
|
||||||
## Hosts
|
## Hosts
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
## Showcase
|
## Showcase
|
||||||
|
|
||||||
| **Desktop** | **Tshell** |
|
| **Desktop** | **Tshell** |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
| :-------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------: |
|
||||||
| <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/desktop.png" width="100%"> | <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/tPanel.png" width="100%"> |
|
| <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/desktop.png" width="100%"> | <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/tPanel.png" width="100%"> |
|
||||||
| **Workflow** | **Neovim** |
|
| **Workflow** | **Neovim** |
|
||||||
| <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/workflow.png" width="100%"> | <img src="https://github.com/user-attachments/assets/f881c672-8d77-43ec-b637-df5004c7d11f" width="100%"> |
|
| <img src="https://raw.githubusercontent.com/tuxdotrs/nix-config/refs/heads/main/assets/hyprland/workflow.png" width="100%"> | <img src="https://github.com/user-attachments/assets/f881c672-8d77-43ec-b637-df5004c7d11f" width="100%"> |
|
||||||
|
|||||||
592
flake.lock
generated
592
flake.lock
generated
File diff suppressed because it is too large
Load Diff
15
flake.nix
15
flake.nix
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
description = "tux's nix configurations";
|
description = "tux's nix configurations";
|
||||||
|
|
||||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-parts = {
|
flake-parts = {
|
||||||
@@ -29,6 +29,16 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trok = {
|
||||||
|
url = "github:tuxdotrs/trok";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
tfolio = {
|
||||||
|
url = "git+ssh://git@github.com/tuxdotrs/tfolio.git";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
cyber-tux = {
|
cyber-tux = {
|
||||||
url = "git+ssh://git@github.com/tuxdotrs/cyber-tux.git";
|
url = "git+ssh://git@github.com/tuxdotrs/cyber-tux.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -84,7 +94,6 @@
|
|||||||
voxtype.url = "github:peteonrails/voxtype/v0.7.5";
|
voxtype.url = "github:peteonrails/voxtype/v0.7.5";
|
||||||
opencode.url = "github:anomalyco/opencode";
|
opencode.url = "github:anomalyco/opencode";
|
||||||
serpantinum.url = "github:ilyamiro/serpantinum";
|
serpantinum.url = "github:ilyamiro/serpantinum";
|
||||||
trok.url = "github:tuxdotrs/trok";
|
llm-agents.url = "github:numtide/llm-agents.nix";
|
||||||
tfolio.url = "git+ssh://git@github.com/tuxdotrs/tfolio.git";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
{ inputs, config, ... }:
|
|
||||||
{
|
{
|
||||||
flake.modules.nixOnDroid.core =
|
inputs,
|
||||||
{
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules.nixOnDroid.core = {
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "bak";
|
backupFileExtension = "bak";
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixOnDroid.networking =
|
flake.modules.nixOnDroid.networking = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
# utility functions
|
# utility functions
|
||||||
concatLines = list: builtins.concatStringsSep "\n" list;
|
concatLines = list: builtins.concatStringsSep "\n" list;
|
||||||
|
|
||||||
@@ -57,8 +55,7 @@
|
|||||||
-f "/etc/${configPath}" \
|
-f "/etc/${configPath}" \
|
||||||
-D # don't detach into a daemon process
|
-D # don't detach into a daemon process
|
||||||
'';
|
'';
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.networking.openssh = {
|
options.tnix.networking.openssh = {
|
||||||
enable = lib.mkEnableOption ''
|
enable = lib.mkEnableOption ''
|
||||||
Whether to enable the OpenSSH secure shell daemon, which
|
Whether to enable the OpenSSH secure shell daemon, which
|
||||||
@@ -67,7 +64,7 @@
|
|||||||
|
|
||||||
ports = lib.mkOption {
|
ports = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.port;
|
type = lib.types.listOf lib.types.port;
|
||||||
default = [ 22 ];
|
default = [22];
|
||||||
description = ''
|
description = ''
|
||||||
Specifies on which ports the SSH daemon listens.
|
Specifies on which ports the SSH daemon listens.
|
||||||
'';
|
'';
|
||||||
@@ -75,7 +72,7 @@
|
|||||||
|
|
||||||
authorizedKeys = lib.mkOption {
|
authorizedKeys = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [];
|
||||||
description = ''
|
description = ''
|
||||||
Specify a list of public keys to be added to the authorized_keys file.
|
Specify a list of public keys to be added to the authorized_keys file.
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
imports = [inputs.flake-parts.flakeModules.modules];
|
||||||
imports = [ inputs.flake-parts.flakeModules.modules ];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,18 +3,17 @@
|
|||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
mkNixOSHost = hostName: {
|
||||||
mkNixOSHost =
|
|
||||||
hostName:
|
|
||||||
{
|
|
||||||
userName ? "tux",
|
userName ? "tux",
|
||||||
userEmail ? "t@tux.rs",
|
userEmail ? "t@tux.rs",
|
||||||
system ? "x86_64-linux",
|
system ? "x86_64-linux",
|
||||||
unstable ? true,
|
unstable ? true,
|
||||||
}:
|
}: let
|
||||||
let
|
nixpkgs =
|
||||||
nixpkgs = if unstable then inputs.nixpkgs else inputs.nixpkgs-stable;
|
if unstable
|
||||||
|
then inputs.nixpkgs
|
||||||
|
else inputs.nixpkgs-stable;
|
||||||
in
|
in
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -32,16 +31,16 @@ let
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mkDroidHost =
|
mkDroidHost = hostName: {
|
||||||
hostName:
|
|
||||||
{
|
|
||||||
userName ? "nix-on-droid",
|
userName ? "nix-on-droid",
|
||||||
userEmail ? "t@tux.rs",
|
userEmail ? "t@tux.rs",
|
||||||
system ? "aarch64-linux",
|
system ? "aarch64-linux",
|
||||||
unstable ? true,
|
unstable ? true,
|
||||||
}:
|
}: let
|
||||||
let
|
nixpkgs =
|
||||||
nixpkgs = if unstable then inputs.nixpkgs else inputs.nixpkgs-stable;
|
if unstable
|
||||||
|
then inputs.nixpkgs
|
||||||
|
else inputs.nixpkgs-stable;
|
||||||
in
|
in
|
||||||
inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
@@ -65,12 +64,7 @@ let
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mkNixOSNode =
|
mkNixOSNode = hostName: {system ? "x86_64-linux"}: {
|
||||||
hostName:
|
|
||||||
{
|
|
||||||
system ? "x86_64-linux",
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
hostname = hostName;
|
hostname = hostName;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
@@ -78,17 +72,11 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
activateNixOnDroid =
|
activateNixOnDroid = system: configuration:
|
||||||
system: configuration:
|
|
||||||
inputs.deploy-rs.lib.${system}.activate.custom configuration.activationPackage
|
inputs.deploy-rs.lib.${system}.activate.custom configuration.activationPackage
|
||||||
"${configuration.activationPackage}/activate";
|
"${configuration.activationPackage}/activate";
|
||||||
|
|
||||||
mkDroidNode =
|
mkDroidNode = hostName: {system ? "aarch64-linux"}: {
|
||||||
hostName:
|
|
||||||
{
|
|
||||||
system ? "aarch64-linux",
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
hostname = hostName;
|
hostname = hostName;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
sshUser = "nix-on-droid";
|
sshUser = "nix-on-droid";
|
||||||
@@ -101,30 +89,30 @@ let
|
|||||||
path = activateNixOnDroid system self.nixOnDroidConfigurations.${hostName};
|
path = activateNixOnDroid system self.nixOnDroidConfigurations.${hostName};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
flake = {
|
flake = {
|
||||||
nixosConfigurations = builtins.mapAttrs mkNixOSHost {
|
nixosConfigurations = builtins.mapAttrs mkNixOSHost {
|
||||||
sirius = { };
|
sirius = {};
|
||||||
canopus = { };
|
canopus = {};
|
||||||
arcturus = { };
|
arcturus = {};
|
||||||
alpha = { };
|
alpha = {};
|
||||||
vps = { };
|
vps = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixOnDroidConfigurations = builtins.mapAttrs mkDroidHost {
|
nixOnDroidConfigurations = builtins.mapAttrs mkDroidHost {
|
||||||
vega = { };
|
vega = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes =
|
deploy.nodes =
|
||||||
builtins.mapAttrs (hostName: _: mkNixOSNode hostName { }) self.nixosConfigurations
|
builtins.mapAttrs (hostName: _: mkNixOSNode hostName {}) self.nixosConfigurations
|
||||||
// builtins.mapAttrs (hostName: _: mkDroidNode hostName { }) self.nixOnDroidConfigurations;
|
// builtins.mapAttrs (hostName: _: mkDroidNode hostName {}) self.nixOnDroidConfigurations;
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem = {
|
perSystem = {
|
||||||
checks = builtins.mapAttrs (
|
checks =
|
||||||
|
builtins.mapAttrs (
|
||||||
_: hostConfig: hostConfig.config.system.build.toplevel
|
_: hostConfig: hostConfig.config.system.build.toplevel
|
||||||
) self.nixosConfigurations;
|
)
|
||||||
|
self.nixosConfigurations;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{
|
{inputs, ...}: {
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
flake.overlays = {
|
flake.overlays = {
|
||||||
modifications = final: prev: {
|
modifications = final: prev: {
|
||||||
|
omasnap = prev.callPackage ../../packages/omasnap.nix {};
|
||||||
tnvim = inputs.tnvim.packages.${prev.stdenv.hostPlatform.system}.default;
|
tnvim = inputs.tnvim.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||||
tshell = inputs.tshell.packages.${prev.stdenv.hostPlatform.system}.default;
|
tshell = inputs.tshell.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||||
trok = inputs.trok.packages.${prev.stdenv.hostPlatform.system}.default;
|
trok = inputs.trok.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||||
@@ -18,6 +15,18 @@
|
|||||||
opencode-git = inputs.opencode.packages.${prev.stdenv.hostPlatform.system}.default;
|
opencode-git = inputs.opencode.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||||
nix-index-small =
|
nix-index-small =
|
||||||
inputs.nix-index-database.packages.${prev.stdenv.hostPlatform.system}.nix-index-with-small-db;
|
inputs.nix-index-database.packages.${prev.stdenv.hostPlatform.system}.nix-index-with-small-db;
|
||||||
|
|
||||||
|
davinci-resolve = prev.davinci-resolve.override {
|
||||||
|
runCommandLocal = name: env: cmd:
|
||||||
|
if prev.lib.hasSuffix "-src.zip" name
|
||||||
|
then
|
||||||
|
prev.runCommandLocal name (env
|
||||||
|
// {
|
||||||
|
outputHash = "sha256-+3SB32EHpH9/0hM3h8CrO6f7V4ZAmxUFh3P8m6QDeO0=";
|
||||||
|
})
|
||||||
|
cmd
|
||||||
|
else prev.runCommandLocal name env cmd;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
stable-packages = final: _prev: {
|
stable-packages = final: _prev: {
|
||||||
@@ -29,14 +38,17 @@
|
|||||||
|
|
||||||
nur = inputs.nur.overlays.default;
|
nur = inputs.nur.overlays.default;
|
||||||
copyparty = inputs.copyparty.overlays.default;
|
copyparty = inputs.copyparty.overlays.default;
|
||||||
|
llm-agents = inputs.llm-agents.overlays.shared-nixpkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem =
|
perSystem = {system, ...}: let
|
||||||
{ system, ... }:
|
pkgs = import inputs.nixpkgs {
|
||||||
{
|
|
||||||
_module.args.pkgs = import inputs.nixpkgs {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = builtins.attrValues inputs.self.overlays;
|
overlays = builtins.attrValues inputs.self.overlays;
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
_module.args.pkgs = pkgs;
|
||||||
|
|
||||||
|
packages.omasnap = pkgs.omasnap;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.treefmt-nix.flakeModule
|
inputs.treefmt-nix.flakeModule
|
||||||
];
|
];
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
flakeCheck = true;
|
flakeCheck = true;
|
||||||
programs = {
|
programs = {
|
||||||
nixfmt.enable = true;
|
alejandra.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.core =
|
flake.modules.homeManager.core = {userName, ...}: {
|
||||||
{ userName, ... }:
|
|
||||||
{
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.homeManager.core = {
|
||||||
flake.modules.homeManager.core =
|
|
||||||
{
|
|
||||||
lib,
|
lib,
|
||||||
osConfig ? { },
|
osConfig ? {},
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
nixpkgs = lib.mkIf (!(osConfig.home-manager.useGlobalPkgs or false)) {
|
nixpkgs = lib.mkIf (!(osConfig.home-manager.useGlobalPkgs or false)) {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
configDir = "${config.xdg.configHome}/BraveSoftware/Brave-Origin";
|
||||||
configDir = "${config.xdg.configHome}/BraveSoftware/Brave-Browser";
|
|
||||||
|
|
||||||
extensionJson = ext: {
|
extensionJson = ext: {
|
||||||
name = "${configDir}/External Extensions/${ext.id}.json";
|
name = "${configDir}/External Extensions/${ext.id}.json";
|
||||||
@@ -16,23 +14,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
{ id = "nkbihfbeogaeaoehlefnkodbefgpgknn"; } # Metamask
|
{id = "nkbihfbeogaeaoehlefnkodbefgpgknn";} # Metamask
|
||||||
{ id = "gppongmhjkpfnbhagpmjfkannfbllamg"; } # Wappalyzer
|
{id = "gppongmhjkpfnbhagpmjfkannfbllamg";} # Wappalyzer
|
||||||
{ id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden
|
{id = "nngceckbapebfimnlniiiahkandclblb";} # Bitwarden
|
||||||
{ id = "bfnaelmomeimhlpmgjnjophhpkkoljpa"; } # Phantom
|
{id = "bfnaelmomeimhlpmgjnjophhpkkoljpa";} # Phantom
|
||||||
{ id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; } # DarkReader
|
{id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";} # DarkReader
|
||||||
];
|
];
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.brave;
|
package = pkgs.brave-origin;
|
||||||
commandLineArgs = [
|
commandLineArgs = [
|
||||||
"--disable-features=WebRtcAllowInputVolumeAdjustment"
|
"--disable-features=WebRtcAllowInputVolumeAdjustment"
|
||||||
"--force-device-scale-factor=1.0"
|
"--force-device-scale-factor=1.0"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = [pkgs.brave];
|
||||||
|
|
||||||
home.file = builtins.listToAttrs (map extensionJson extensions);
|
home.file = builtins.listToAttrs (map extensionJson extensions);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {
|
||||||
{ inputs, userName, ... }:
|
inputs,
|
||||||
{
|
userName,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixcord.homeModules.nixcord
|
inputs.nixcord.homeModules.nixcord
|
||||||
];
|
];
|
||||||
@@ -47,7 +49,7 @@
|
|||||||
rpcServer = true;
|
rpcServer = true;
|
||||||
rpcProcessScanner = true;
|
rpcProcessScanner = true;
|
||||||
pushToTalk = true;
|
pushToTalk = true;
|
||||||
pushToTalkKeys = [ "RControl" ];
|
pushToTalkKeys = ["RControl"];
|
||||||
desktopNotifications = true;
|
desktopNotifications = true;
|
||||||
unreadBadge = true;
|
unreadBadge = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {
|
||||||
{ config, pkgs, ... }:
|
config,
|
||||||
{
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# TODO: Hyprland 0.55 switched to Lua-based configuration.
|
# TODO: Hyprland 0.55 switched to Lua-based configuration.
|
||||||
# HM module is updated but I'm too lazy at this point so we symlink our config instead.
|
# HM module is updated but I'm too lazy at this point so we symlink our config instead.
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@@ -10,7 +12,7 @@
|
|||||||
portalPackage = null;
|
portalPackage = null;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
configType = "hyprlang";
|
configType = "hyprlang";
|
||||||
systemd.variables = [ "--all" ];
|
systemd.variables = ["--all"];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
@@ -28,6 +30,7 @@
|
|||||||
hyprshot
|
hyprshot
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wl-screenrec
|
wl-screenrec
|
||||||
|
omasnap
|
||||||
(writeShellScriptBin "hypr-screenshot" ''
|
(writeShellScriptBin "hypr-screenshot" ''
|
||||||
hyprshot -m region -r ppm - | satty --filename -
|
hyprshot -m region -r ppm - | satty --filename -
|
||||||
'')
|
'')
|
||||||
|
|||||||
86
modules/hm/desktop/kitty.nix
Normal file
86
modules/hm/desktop/kitty.nix
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.kitty;
|
||||||
|
|
||||||
|
font = {
|
||||||
|
name = "JetBrainsMono Nerd Font";
|
||||||
|
size = 12.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
shellIntegration.enableZshIntegration = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
background_opacity = "1.0";
|
||||||
|
|
||||||
|
enable_audio_bell = false;
|
||||||
|
confirm_os_window_close = 0;
|
||||||
|
|
||||||
|
cursor_trail = 3;
|
||||||
|
|
||||||
|
# Window
|
||||||
|
window_padding_width = 10;
|
||||||
|
|
||||||
|
foreground = "#f1f1f1";
|
||||||
|
background = "#0f0f0f";
|
||||||
|
|
||||||
|
# Borders
|
||||||
|
active_border_color = "#3d59a1";
|
||||||
|
inactive_border_color = "#101014";
|
||||||
|
bell_border_color = "#fffac2";
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
color0 = "#0f0f0f";
|
||||||
|
color8 = "#a6accd";
|
||||||
|
|
||||||
|
color1 = "#d0679d";
|
||||||
|
color9 = "#d0679d";
|
||||||
|
|
||||||
|
color2 = "#5de4c7";
|
||||||
|
color10 = "#5de4c7";
|
||||||
|
|
||||||
|
color3 = "#fffac2";
|
||||||
|
color11 = "#fffac2";
|
||||||
|
|
||||||
|
color4 = "#89ddff";
|
||||||
|
color12 = "#add7ff";
|
||||||
|
|
||||||
|
color5 = "#fcc5e9";
|
||||||
|
color13 = "#fae4fc";
|
||||||
|
|
||||||
|
color6 = "#add7ff";
|
||||||
|
color14 = "#89ddff";
|
||||||
|
|
||||||
|
color7 = "#ffffff";
|
||||||
|
color15 = "#ffffff";
|
||||||
|
|
||||||
|
# Cursor
|
||||||
|
cursor = "#ffffff";
|
||||||
|
cursor_text_color = "#0f0f0f";
|
||||||
|
|
||||||
|
# Selection
|
||||||
|
selection_foreground = "none";
|
||||||
|
selection_background = "#28344a";
|
||||||
|
|
||||||
|
# URLs
|
||||||
|
url_color = "#5de4c7";
|
||||||
|
|
||||||
|
# Tab bar
|
||||||
|
tab_bar_edge = "bottom";
|
||||||
|
tab_bar_style = "fade";
|
||||||
|
tab_fade = "1";
|
||||||
|
|
||||||
|
active_tab_foreground = "#3d59a1";
|
||||||
|
active_tab_background = "#16161e";
|
||||||
|
active_tab_font_style = "bold";
|
||||||
|
|
||||||
|
inactive_tab_foreground = "#787c99";
|
||||||
|
inactive_tab_background = "#16161e";
|
||||||
|
inactive_tab_font_style = "bold";
|
||||||
|
|
||||||
|
tab_bar_background = "#101014";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,25 +1,21 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.homeManager.desktop = {
|
||||||
flake.modules.homeManager.desktop =
|
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.lan-mouse;
|
cfg = config.tnix.services.lan-mouse;
|
||||||
in
|
in {
|
||||||
{
|
imports = [inputs.lan-mouse.homeManagerModules.default];
|
||||||
imports = [ inputs.lan-mouse.homeManagerModules.default ];
|
|
||||||
|
|
||||||
options.tnix.services.lan-mouse = {
|
options.tnix.services.lan-mouse = {
|
||||||
enable = mkEnableOption "Enable Lan-Mouse";
|
enable = mkEnableOption "Enable Lan-Mouse";
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = (pkgs.formats.toml { }).type;
|
type = (pkgs.formats.toml {}).type;
|
||||||
default = { };
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
TOML configuration for lan-mouse.
|
TOML configuration for lan-mouse.
|
||||||
See <https://github.com/feschber/lan-mouse/> for available options.
|
See <https://github.com/feschber/lan-mouse/> for available options.
|
||||||
@@ -28,7 +24,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
programs.lan-mouse = {
|
programs.lan-mouse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = true;
|
systemd = true;
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.homeManager.desktop = {
|
||||||
flake.modules.homeManager.desktop =
|
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.desktop.mangowm;
|
cfg = config.tnix.desktop.mangowm;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.mango.hmModules.mango
|
inputs.mango.hmModules.mango
|
||||||
];
|
];
|
||||||
@@ -21,12 +17,12 @@
|
|||||||
|
|
||||||
monitorRule = mkOption {
|
monitorRule = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
tagRule = mkOption {
|
tagRule = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.mpv = {
|
programs.mpv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
scripts = (
|
scripts = (
|
||||||
with pkgs.mpvScripts;
|
with pkgs.mpvScripts; [
|
||||||
[
|
|
||||||
modernz
|
modernz
|
||||||
thumbfast
|
thumbfast
|
||||||
mpris
|
mpris
|
||||||
|
|||||||
@@ -25,11 +25,16 @@
|
|||||||
language = "en";
|
language = "en";
|
||||||
weatherUnit = "metric";
|
weatherUnit = "metric";
|
||||||
weatherInterval = 30;
|
weatherInterval = 30;
|
||||||
|
avatarPath = "/home/tux/Wallpapers/tux.png";
|
||||||
|
muteSfx = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
bar = {
|
bar = {
|
||||||
position = "top";
|
position = "top";
|
||||||
style = "modular";
|
style = "modular";
|
||||||
|
time = {
|
||||||
|
format = "hh:mm:ss A";
|
||||||
|
};
|
||||||
width = 5;
|
width = 5;
|
||||||
workspaceCount = 7;
|
workspaceCount = 7;
|
||||||
modules = {
|
modules = {
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.bibata-cursors;
|
package = pkgs.bibata-cursors;
|
||||||
name = "Bibata-Modern-Ice";
|
name = "Bibata-Modern-Ice";
|
||||||
size = 28;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.vicinae = {
|
programs.vicinae = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
@@ -14,20 +9,16 @@
|
|||||||
useLayerShell = true;
|
useLayerShell = true;
|
||||||
|
|
||||||
extensions = with pkgs.vicinae-extensions; [
|
extensions = with pkgs.vicinae-extensions; [
|
||||||
# @TODO broken in upstream repo
|
|
||||||
# bluetooth
|
|
||||||
nix
|
nix
|
||||||
ssh
|
ssh
|
||||||
awww-switcher
|
awww-switcher
|
||||||
process-manager
|
process-manager
|
||||||
pulseaudio
|
pulseaudio
|
||||||
wifi-commander
|
|
||||||
port-killer
|
port-killer
|
||||||
silverbullet
|
|
||||||
];
|
];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
close_on_focus_loss = true;
|
close_on_focus_loss = false;
|
||||||
consider_preedit = true;
|
consider_preedit = true;
|
||||||
pop_to_root_on_close = true;
|
pop_to_root_on_close = true;
|
||||||
favicon_service = "twenty";
|
favicon_service = "twenty";
|
||||||
@@ -52,7 +43,7 @@
|
|||||||
opacity = 0.98;
|
opacity = 0.98;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ "/run/secrets/vicinae.json" ];
|
imports = ["/run/secrets/vicinae.json"];
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
"@sovereign/vicinae-extension-awww-switcher-0" = {
|
"@sovereign/vicinae-extension-awww-switcher-0" = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
flake.modules.homeManager.desktop = { pkgs, ... }: {
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.voxtype.homeManagerModules.default
|
inputs.voxtype.homeManagerModules.default
|
||||||
];
|
];
|
||||||
@@ -12,7 +12,14 @@
|
|||||||
service.enable = true;
|
service.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
hotkey.enabled = false;
|
hotkey.enabled = false;
|
||||||
whisper.language = "en";
|
whisper = {
|
||||||
|
language = "en";
|
||||||
|
on_demand_loading = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
parakeet = {
|
||||||
|
on_demand_loading = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop =
|
flake.modules.homeManager.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wezterm-git;
|
package = pkgs.wezterm-git;
|
||||||
|
|||||||
@@ -29,6 +29,25 @@
|
|||||||
diagnostics = false;
|
diagnostics = false;
|
||||||
metrics = false;
|
metrics = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
agent = {
|
||||||
|
dock = "right";
|
||||||
|
favorite_models = [];
|
||||||
|
model_parameters = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
collaboration_panel = {
|
||||||
|
button = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
agent_servers = {
|
||||||
|
opencode = {
|
||||||
|
default_config_options = {
|
||||||
|
model = "opencode-go/deepseek-v4.1-flash";
|
||||||
|
};
|
||||||
|
type = "registry";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.desktop = { osConfig, ... }: {
|
flake.modules.homeManager.desktop = {osConfig, ...}: {
|
||||||
programs.lutris = {
|
programs.lutris = {
|
||||||
enable = true;
|
enable = true;
|
||||||
steamPackage = osConfig.programs.steam.package;
|
steamPackage = osConfig.programs.steam.package;
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell =
|
flake.modules.homeManager.shell = {
|
||||||
{
|
|
||||||
userName,
|
userName,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
signing = {
|
signing = {
|
||||||
|
|||||||
7
modules/hm/shell/github.nix
Normal file
7
modules/hm/shell/github.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.shell = {
|
||||||
|
programs.gh = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell =
|
flake.modules.homeManager.shell = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
systemctl-tui
|
systemctl-tui
|
||||||
zip
|
zip
|
||||||
@@ -12,6 +10,77 @@
|
|||||||
dig
|
dig
|
||||||
lsof
|
lsof
|
||||||
trok
|
trok
|
||||||
|
|
||||||
|
(writeShellScriptBin "hm-override" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "Usage:"
|
||||||
|
echo " $0 <filename> Override symlink"
|
||||||
|
echo " $0 <filename> --restore Restore symlink"
|
||||||
|
echo " $0 <filename> -r Restore symlink"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $# -lt 1 || $# -gt 2 ]]; then
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
||||||
|
FILE="$1"
|
||||||
|
LINK_BACKUP="''${FILE}.backup-link"
|
||||||
|
|
||||||
|
# Restore
|
||||||
|
if [[ "''${2:-}" == "--restore" || "''${2:-}" == "-r" ]]; then
|
||||||
|
if [[ ! -f "$LINK_BACKUP" ]]; then
|
||||||
|
echo "Error: no backup symlink found: $LINK_BACKUP"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TARGET="$(cat "$LINK_BACKUP")"
|
||||||
|
|
||||||
|
# Remove the temporary override.
|
||||||
|
rm -f "$FILE"
|
||||||
|
|
||||||
|
# Restore the original symlink.
|
||||||
|
ln -s "$TARGET" "$FILE"
|
||||||
|
|
||||||
|
# Remove the temporary symlink target backup.
|
||||||
|
rm "$LINK_BACKUP"
|
||||||
|
|
||||||
|
echo "Restored: $FILE -> $TARGET"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Override mode
|
||||||
|
if [[ ! -L "$FILE" ]]; then
|
||||||
|
echo "Error: $FILE is not a symlink"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -e "$LINK_BACKUP" ]]; then
|
||||||
|
echo "Error: backup already exists: $LINK_BACKUP"
|
||||||
|
echo "Restore the existing override before running again."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remember the original symlink target.
|
||||||
|
TARGET="$(readlink "$FILE")"
|
||||||
|
printf '%s\n' "$TARGET" > "$LINK_BACKUP"
|
||||||
|
|
||||||
|
# Copy the contents before removing the symlink.
|
||||||
|
cp "$FILE" "$FILE.tmp"
|
||||||
|
|
||||||
|
# Replace the symlink with a regular writable file.
|
||||||
|
rm "$FILE"
|
||||||
|
mv "$FILE.tmp" "$FILE"
|
||||||
|
|
||||||
|
chmod u+w "$FILE"
|
||||||
|
|
||||||
|
echo "Overridden: $FILE"
|
||||||
|
echo "Original: $FILE -> $TARGET"
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell =
|
flake.modules.homeManager.shell = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/nvim" = {
|
".config/nvim" = {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell = { pkgs, ... }: {
|
flake.modules.homeManager.shell = {pkgs, ...}: {
|
||||||
programs.opencode = {
|
programs.opencode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.opencode-git;
|
package = pkgs.opencode-git;
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
theme = "system";
|
theme = "system";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
model = "opencode-go/kimi-k3";
|
model = "opencode-go/deepseek-v4.1-flash";
|
||||||
provider = {
|
provider = {
|
||||||
google = {
|
google = {
|
||||||
options = {
|
options = {
|
||||||
@@ -24,8 +24,13 @@
|
|||||||
apiKey = "{file:/run/secrets/opencode-go-api-key}";
|
apiKey = "{file:/run/secrets/opencode-go-api-key}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
zai-coding-plan = {
|
||||||
|
options = {
|
||||||
|
apiKey = "{file:/run/secrets/zai-coding-plan-api-key}";
|
||||||
};
|
};
|
||||||
plugin = [ "@dietrichgebert/ponytail" ];
|
};
|
||||||
|
};
|
||||||
|
plugin = ["@dietrichgebert/ponytail"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,58 +1,47 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell =
|
flake.modules.homeManager.shell = {pkgs, ...}: let
|
||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
bg = "default";
|
bg = "default";
|
||||||
fg = "default";
|
fg = "default";
|
||||||
bg2 = "brightblack";
|
bg2 = "brightblack";
|
||||||
fg2 = "white";
|
fg2 = "white";
|
||||||
color = c: "#{@${c}}";
|
color = c: "#{@${c}}";
|
||||||
|
|
||||||
indicator =
|
indicator = let
|
||||||
let
|
|
||||||
accent = color "indicator_color";
|
accent = color "indicator_color";
|
||||||
content = " ";
|
content = " ";
|
||||||
in
|
in "#[reverse,fg=${accent}]#{?client_prefix,${content},}";
|
||||||
"#[reverse,fg=${accent}]#{?client_prefix,${content},}";
|
|
||||||
|
|
||||||
current_window =
|
current_window = let
|
||||||
let
|
|
||||||
accent = color "main_accent";
|
accent = color "main_accent";
|
||||||
index = "#[reverse,fg=${accent},bg=${fg}] #I ";
|
index = "#[reverse,fg=${accent},bg=${fg}] #I ";
|
||||||
name = "#[fg=${bg2},bg=${fg2}] #W ";
|
name = "#[fg=${bg2},bg=${fg2}] #W ";
|
||||||
# flags = "#{?window_flags,#{window_flags}, }";
|
# flags = "#{?window_flags,#{window_flags}, }";
|
||||||
in
|
in "${index}${name}";
|
||||||
"${index}${name}";
|
|
||||||
|
|
||||||
window_status =
|
window_status = let
|
||||||
let
|
|
||||||
accent = color "window_color";
|
accent = color "window_color";
|
||||||
index = "#[reverse,fg=${accent},bg=${fg}] #I ";
|
index = "#[reverse,fg=${accent},bg=${fg}] #I ";
|
||||||
name = "#[fg=${bg2},bg=${fg2}] #W ";
|
name = "#[fg=${bg2},bg=${fg2}] #W ";
|
||||||
# flags = "#{?window_flags,#{window_flags}, }";
|
# flags = "#{?window_flags,#{window_flags}, }";
|
||||||
in
|
in "${index}${name}";
|
||||||
"${index}${name}";
|
|
||||||
|
|
||||||
battery =
|
battery = let
|
||||||
let
|
|
||||||
percentage = pkgs.writeShellScript "percentage" (
|
percentage = pkgs.writeShellScript "percentage" (
|
||||||
if pkgs.stdenv.isDarwin then
|
if pkgs.stdenv.isDarwin
|
||||||
''
|
then ''
|
||||||
echo $(pmset -g batt | grep -o "[0-9]\+%" | tr '%' ' ')
|
echo $(pmset -g batt | grep -o "[0-9]\+%" | tr '%' ' ')
|
||||||
''
|
''
|
||||||
else
|
else ''
|
||||||
''
|
|
||||||
path="/org/freedesktop/UPower/devices/DisplayDevice"
|
path="/org/freedesktop/UPower/devices/DisplayDevice"
|
||||||
echo $(${pkgs.upower}/bin/upower -i $path | grep -o "[0-9]\+%" | tr '%' ' ')
|
echo $(${pkgs.upower}/bin/upower -i $path | grep -o "[0-9]\+%" | tr '%' ' ')
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
state = pkgs.writeShellScript "state" (
|
state = pkgs.writeShellScript "state" (
|
||||||
if pkgs.stdenv.isDarwin then
|
if pkgs.stdenv.isDarwin
|
||||||
''
|
then ''
|
||||||
echo $(pmset -g batt | awk '{print $4}')
|
echo $(pmset -g batt | awk '{print $4}')
|
||||||
''
|
''
|
||||||
else
|
else ''
|
||||||
''
|
|
||||||
path="/org/freedesktop/UPower/devices/DisplayDevice"
|
path="/org/freedesktop/UPower/devices/DisplayDevice"
|
||||||
echo $(${pkgs.upower}/bin/upower -i $path | grep state | awk '{print $2}')
|
echo $(${pkgs.upower}/bin/upower -i $path | grep state | awk '{print $2}')
|
||||||
''
|
''
|
||||||
@@ -77,31 +66,25 @@
|
|||||||
elif [ $percentage -ge 0 ]; then echo "red"
|
elif [ $percentage -ge 0 ]; then echo "red"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in
|
in "#[fg=#(${color})]#(${icon}) #[fg=${fg}]#(${percentage})%";
|
||||||
"#[fg=#(${color})]#(${icon}) #[fg=${fg}]#(${percentage})%";
|
|
||||||
|
|
||||||
pwd =
|
pwd = let
|
||||||
let
|
|
||||||
accent = color "main_accent";
|
accent = color "main_accent";
|
||||||
icon = "#[fg=${accent}] ";
|
icon = "#[fg=${accent}] ";
|
||||||
format = "#[fg=${fg}]#{b:pane_current_path}";
|
format = "#[fg=${fg}]#{b:pane_current_path}";
|
||||||
in
|
in "${icon}${format}";
|
||||||
"${icon}${format}";
|
|
||||||
|
|
||||||
git =
|
git = let
|
||||||
let
|
|
||||||
icon = pkgs.writeShellScript "branch" ''
|
icon = pkgs.writeShellScript "branch" ''
|
||||||
git -C "$1" branch && echo " "
|
git -C "$1" branch && echo " "
|
||||||
'';
|
'';
|
||||||
branch = pkgs.writeShellScript "branch" ''
|
branch = pkgs.writeShellScript "branch" ''
|
||||||
git -C "$1" rev-parse --abbrev-ref HEAD
|
git -C "$1" rev-parse --abbrev-ref HEAD
|
||||||
'';
|
'';
|
||||||
in
|
in "#[fg=magenta]#(${icon} #{pane_current_path})#(${branch} #{pane_current_path})";
|
||||||
"#[fg=magenta]#(${icon} #{pane_current_path})#(${branch} #{pane_current_path})";
|
|
||||||
|
|
||||||
separator = "#[fg=${fg}]|";
|
separator = "#[fg=${fg}]|";
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
baseIndex = 1;
|
baseIndex = 1;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
flake.modules.homeManager.shell = {
|
flake.modules.homeManager.shell = {
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = [ "--cmd cd" ];
|
options = ["--cmd cd"];
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
flake.modules.homeManager.shell = {pkgs, ...}: {
|
||||||
flake.modules.homeManager.shell =
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
history = {
|
history = {
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
{ inputs, config, ... }:
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.alpha =
|
inputs,
|
||||||
{
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules.nixos.alpha = {
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
} @ innerArgs: {
|
||||||
{
|
imports = with config.flake.modules.nixos;
|
||||||
imports =
|
|
||||||
with config.flake.modules.nixos;
|
|
||||||
[
|
[
|
||||||
boot
|
boot
|
||||||
networking
|
networking
|
||||||
@@ -98,6 +98,11 @@
|
|||||||
owner = userName;
|
owner = userName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zai-coding-plan-api-key = {
|
||||||
|
sopsFile = ./secrets.yaml;
|
||||||
|
owner = userName;
|
||||||
|
};
|
||||||
|
|
||||||
netbird-key = {
|
netbird-key = {
|
||||||
sopsFile = ./secrets.yaml;
|
sopsFile = ./secrets.yaml;
|
||||||
owner = userName;
|
owner = userName;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.alpha = {
|
||||||
flake.modules.nixos.alpha =
|
config,
|
||||||
{ config, lib, ... }:
|
lib,
|
||||||
let
|
...
|
||||||
|
}: let
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
isLegacy = config.tnix.boot.legacy.enable;
|
isLegacy = config.tnix.boot.legacy.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions =
|
||||||
|
{
|
||||||
ESP = {
|
ESP = {
|
||||||
size = "1G";
|
size = "1G";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
@@ -36,7 +37,8 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
# Base subvolumes that always exist
|
# Base subvolumes that always exist
|
||||||
subvolumes = {
|
subvolumes =
|
||||||
|
{
|
||||||
"/root" = {
|
"/root" = {
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.alpha =
|
flake.modules.nixos.alpha = {
|
||||||
{
|
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ tux-password: ENC[AES256_GCM,data:tvx3nMoIuQSotxHDWLs7UesnyWY3u3EwkqAIzCw3Z2AJse
|
|||||||
gemini-api-key: ENC[AES256_GCM,data:Bo3Z5Jhce0UOBn77I2AcrXYbBgPLDx0eOjPC8J63E/VWNhMPbbxb,iv:iWOsTACOMcK3oqq848WnJ5Ku3tYy1aadmLB4IMgoyqg=,tag:BPzlXoP8/iJaj8c/YFCWyg==,type:str]
|
gemini-api-key: ENC[AES256_GCM,data:Bo3Z5Jhce0UOBn77I2AcrXYbBgPLDx0eOjPC8J63E/VWNhMPbbxb,iv:iWOsTACOMcK3oqq848WnJ5Ku3tYy1aadmLB4IMgoyqg=,tag:BPzlXoP8/iJaj8c/YFCWyg==,type:str]
|
||||||
openrouter-api-key: ENC[AES256_GCM,data:D+/ImUTg7UvBTh0fMlWMZ0O/GsQS/R4Hz+CO4l42R6mn+zk+udvw79BctXdWWyrFf2ZNOTJ/99QTtWOUOvHISWaEJogXyb+93g==,iv:c7OtgBu1Zaf7lA4InIsKOAPbAvTl3gaO7QGCFNx21Bo=,tag:KXiASj/qC1YzK6DUox57ug==,type:str]
|
openrouter-api-key: ENC[AES256_GCM,data:D+/ImUTg7UvBTh0fMlWMZ0O/GsQS/R4Hz+CO4l42R6mn+zk+udvw79BctXdWWyrFf2ZNOTJ/99QTtWOUOvHISWaEJogXyb+93g==,iv:c7OtgBu1Zaf7lA4InIsKOAPbAvTl3gaO7QGCFNx21Bo=,tag:KXiASj/qC1YzK6DUox57ug==,type:str]
|
||||||
opencode-go-api-key: ENC[AES256_GCM,data:ipKkNcRqBERIQ6f6yFzVm999s+UwJys4elHWhzpL441RfOaG9MmRWMcD+wRLJ7DSWFjYu6uUPF7TKez8J6abWeKDgg==,iv:FDSYE3R8zKVxWiP2S/sCVcwEu3fEXg/hCeqCRSF+c6g=,tag:5RDuMFGMoN6xwAYj0HiyjQ==,type:str]
|
opencode-go-api-key: ENC[AES256_GCM,data:ipKkNcRqBERIQ6f6yFzVm999s+UwJys4elHWhzpL441RfOaG9MmRWMcD+wRLJ7DSWFjYu6uUPF7TKez8J6abWeKDgg==,iv:FDSYE3R8zKVxWiP2S/sCVcwEu3fEXg/hCeqCRSF+c6g=,tag:5RDuMFGMoN6xwAYj0HiyjQ==,type:str]
|
||||||
|
zai-coding-plan-api-key: ENC[AES256_GCM,data:HrNfR+Ux/Iyt4qkD1uXzDFQb+l0ltMMrbRahEG3pofFbw98VXfRFbhspcxh9vEyqkw==,iv:lzkLxPV7Q38dn0IEgtchVMrvnVBz4e5q282704x/hmU=,tag:IKzE6Tp6D93nJHoEvCPGBQ==,type:str]
|
||||||
netbird-key: ENC[AES256_GCM,data:NilfyafnGhFVYD6q4+jJQxlhXNdNC8BQ1CZfu8a5wc693Y1h,iv:Rpl0OpkQdBMPpIJ08t9Z0AjDAW6c97pFZKO1KPu8ipY=,tag:du3d0SQWuqJtJSwhSgJE4g==,type:str]
|
netbird-key: ENC[AES256_GCM,data:NilfyafnGhFVYD6q4+jJQxlhXNdNC8BQ1CZfu8a5wc693Y1h,iv:Rpl0OpkQdBMPpIJ08t9Z0AjDAW6c97pFZKO1KPu8ipY=,tag:du3d0SQWuqJtJSwhSgJE4g==,type:str]
|
||||||
cloudflare-credentials:
|
cloudflare-credentials:
|
||||||
email: ENC[AES256_GCM,data:K9L6H4dqNNgbCFg=,iv:jirDJb+Y2sXrup6/doRmOdd8tV7zLnttcgG75r4Fs04=,tag:XeyMVC+Q9TEuTxSfOeR2Uw==,type:str]
|
email: ENC[AES256_GCM,data:K9L6H4dqNNgbCFg=,iv:jirDJb+Y2sXrup6/doRmOdd8tV7zLnttcgG75r4Fs04=,tag:XeyMVC+Q9TEuTxSfOeR2Uw==,type:str]
|
||||||
@@ -29,7 +30,7 @@ sops:
|
|||||||
4TkObqH8ddGpbd7cX5a/wboTjYuEdAviWxjK2oBPgtcFc1f03X3tmA==
|
4TkObqH8ddGpbd7cX5a/wboTjYuEdAviWxjK2oBPgtcFc1f03X3tmA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
recipient: age1mzxxxzhy3us3rd960ufqv7vlxj5cnug86md6x69llg9ujzw2pqws057llf
|
recipient: age1mzxxxzhy3us3rd960ufqv7vlxj5cnug86md6x69llg9ujzw2pqws057llf
|
||||||
lastmodified: "2026-08-07T20:02:00Z"
|
lastmodified: "2026-09-16T14:21:00Z"
|
||||||
mac: ENC[AES256_GCM,data:VrA2OPCcVvAzYjZTkHPxytclISP24P1FqiIQjSGQItkMLieom80N6933hB0Tdn3BM6600bHt2NweSqHjGx//pn2Gbur4pxeN3TpF9tKXc12IcAThUL9g48fMbk5y+kWWVUF1Pezod0YnzWAlalUXFqvKinfm4RqPNjDjndA/dcI=,iv:xfs9XD5ZIQ6dyMMZ8OE5FEs/hrSr/T2VwC7XvZ7xC2A=,tag:jYWo2kgwwltKB+njiYaPkQ==,type:str]
|
mac: ENC[AES256_GCM,data:Aqg1cboHKW5QrJooVIqgbHTFg9EpTEnfCv/RRSp0efzyXvDrR7eG5WTvJPE9IbrmS190yvOlT0fw1Bhzyr8kiyoO71sbyUessw5IMUGcLP+m2FNtt8osc7fSTGseojv3MXBndOMDEOpT+Clv6hbv/rr5eGbb05oK6rW97/pDDfU=,iv:s/9PAHHQ0mHQJosKGclSnumHqm6CG3fDVKD5eT4Q1Y0=,tag:3pgycAwYUz9aEOy4/aW30Q==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.13.3
|
version: 3.13.3
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{ config, ... }: {
|
{config, ...}: {
|
||||||
flake.modules.nixos.arcturus =
|
flake.modules.nixos.arcturus = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
} @ innerArgs: {
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixos; [
|
imports = with config.flake.modules.nixos; [
|
||||||
boot
|
boot
|
||||||
networking
|
networking
|
||||||
@@ -27,6 +25,7 @@
|
|||||||
".bun"
|
".bun"
|
||||||
".rustup"
|
".rustup"
|
||||||
".config/sops"
|
".config/sops"
|
||||||
|
".config/nix"
|
||||||
".local/share/nvim"
|
".local/share/nvim"
|
||||||
".local/share/opencode"
|
".local/share/opencode"
|
||||||
".local/share/zsh"
|
".local/share/zsh"
|
||||||
@@ -53,7 +52,7 @@
|
|||||||
services = {
|
services = {
|
||||||
hermes-agent = {
|
hermes-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFiles = [ innerArgs.config.sops.secrets.hermes.path ];
|
environmentFiles = [innerArgs.config.sops.secrets.hermes.path];
|
||||||
};
|
};
|
||||||
|
|
||||||
cyber-tux = {
|
cyber-tux = {
|
||||||
@@ -76,12 +75,18 @@
|
|||||||
path = "/var/lib/copyparty/data";
|
path = "/var/lib/copyparty/data";
|
||||||
access = {
|
access = {
|
||||||
r = "*";
|
r = "*";
|
||||||
rwmdgGha = [ userName ];
|
rwmdgGha = [userName];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
configurePangolin = true;
|
configurePangolin = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
coder = {
|
||||||
|
enable = true;
|
||||||
|
domain = "coder.lab.tux.rs";
|
||||||
|
configurePangolin = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
@@ -115,6 +120,11 @@
|
|||||||
owner = userName;
|
owner = userName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zai-coding-plan-api-key = {
|
||||||
|
sopsFile = ./secrets.yaml;
|
||||||
|
owner = userName;
|
||||||
|
};
|
||||||
|
|
||||||
netbird-key = {
|
netbird-key = {
|
||||||
sopsFile = ./secrets.yaml;
|
sopsFile = ./secrets.yaml;
|
||||||
owner = userName;
|
owner = userName;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.arcturus = {
|
||||||
flake.modules.nixos.arcturus =
|
config,
|
||||||
{ config, lib, ... }:
|
lib,
|
||||||
let
|
...
|
||||||
|
}: let
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
@@ -35,7 +35,8 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
# Base subvolumes that always exist
|
# Base subvolumes that always exist
|
||||||
subvolumes = {
|
subvolumes =
|
||||||
|
{
|
||||||
"/root" = {
|
"/root" = {
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
flake.modules.nixos.arcturus = {
|
||||||
flake.modules.nixos.arcturus =
|
|
||||||
{
|
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
} @ innerArgs: {
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixos; [
|
imports = with config.flake.modules.nixos; [
|
||||||
hardware
|
hardware
|
||||||
];
|
];
|
||||||
@@ -20,9 +17,9 @@
|
|||||||
"usb_storage"
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ discord-token: ENC[AES256_GCM,data:uzxkrNRRplL/1MfvPZ/EL+I8UACuZQBHZ95BSHuxW0nBj
|
|||||||
gemini-api-key: ENC[AES256_GCM,data:gLZSoYTdKY+rwIpYiXvN9n9PGkUD6q8Oe7dHnYkjEjwDf5qpjubg,iv:ySoNgQWTu9DjvbashF4ulyYP8fJUl4yrCTeBQ0jrGmw=,tag:FctubsQv50AP78JvTb9bpQ==,type:str]
|
gemini-api-key: ENC[AES256_GCM,data:gLZSoYTdKY+rwIpYiXvN9n9PGkUD6q8Oe7dHnYkjEjwDf5qpjubg,iv:ySoNgQWTu9DjvbashF4ulyYP8fJUl4yrCTeBQ0jrGmw=,tag:FctubsQv50AP78JvTb9bpQ==,type:str]
|
||||||
openrouter-api-key: ENC[AES256_GCM,data:6xONCl9lqOoO7b4CEyCz9607tICDUAkpglRjGS5nYq2ppg2UKqYTrWD1BGCA5Xfs/CWskniVhoNG3vscjKiYCCh9gbM6aqdmTQ==,iv:7Iwc9t00HOOBjA7URXcUO41badqYyJCkFHM/uPkLFxY=,tag:Cl39kitr2e0//HVwAdsdUQ==,type:str]
|
openrouter-api-key: ENC[AES256_GCM,data:6xONCl9lqOoO7b4CEyCz9607tICDUAkpglRjGS5nYq2ppg2UKqYTrWD1BGCA5Xfs/CWskniVhoNG3vscjKiYCCh9gbM6aqdmTQ==,iv:7Iwc9t00HOOBjA7URXcUO41badqYyJCkFHM/uPkLFxY=,tag:Cl39kitr2e0//HVwAdsdUQ==,type:str]
|
||||||
opencode-go-api-key: ENC[AES256_GCM,data:dmeRKn7TWHnqvpyPQpcEG6yHTb2bRby/rh10ytL0jHj5R+lRmNVdmqUF92GTznY9vEaB6ZYCJecWhpm8g4upNfOWBg==,iv:9UMJpAlD8gpcNiN+liu3nawoAZQKapEg7sCp561N9E8=,tag:OZlASpOa5BQaQwFWjoLCRw==,type:str]
|
opencode-go-api-key: ENC[AES256_GCM,data:dmeRKn7TWHnqvpyPQpcEG6yHTb2bRby/rh10ytL0jHj5R+lRmNVdmqUF92GTznY9vEaB6ZYCJecWhpm8g4upNfOWBg==,iv:9UMJpAlD8gpcNiN+liu3nawoAZQKapEg7sCp561N9E8=,tag:OZlASpOa5BQaQwFWjoLCRw==,type:str]
|
||||||
|
zai-coding-plan-api-key: ENC[AES256_GCM,data:lLegmS/RIo7JoBoAyVdcS++rXS8W62cwz+zVsv4dPnlfjGFO/nVlI5InqC34sPxLRQ==,iv:BRC7eYVmdZuWwb+2k2FrnlJih63HXrcvhVp/K5t5td8=,tag:aP8x+Xcnkz2t0hn7erCkKw==,type:str]
|
||||||
netbird-key: ENC[AES256_GCM,data:q6eKisca04qn/CvALrvXF79MsToDhvLRLv2JTiUBAZglCC9m,iv:jj0/ZD7IDgopprTVUgSfJmdAJmUP3iqewU3dqssGYbk=,tag:6IPRdCm2FGdlTEIX7jt3qA==,type:str]
|
netbird-key: ENC[AES256_GCM,data:q6eKisca04qn/CvALrvXF79MsToDhvLRLv2JTiUBAZglCC9m,iv:jj0/ZD7IDgopprTVUgSfJmdAJmUP3iqewU3dqssGYbk=,tag:6IPRdCm2FGdlTEIX7jt3qA==,type:str]
|
||||||
copyparty: ENC[AES256_GCM,data:QXt8IgTekg9rzFyuzpg=,iv:vJYfHqCiheq290K9TGACHNHyOWzIn60j1Kz502SE27w=,tag:ECt7Wavlqw1V6zgXiRZtUg==,type:str]
|
copyparty: ENC[AES256_GCM,data:QXt8IgTekg9rzFyuzpg=,iv:vJYfHqCiheq290K9TGACHNHyOWzIn60j1Kz502SE27w=,tag:ECt7Wavlqw1V6zgXiRZtUg==,type:str]
|
||||||
newt: ENC[AES256_GCM,data:r5Rd81ZrzrIYbXtFkypbJltoGCOYrW6P4IpwGCtaH7lqCg7wD/WMboMx13HN4Mm0J4qbBpDakpfVv9qUTrisYP1xwpKkmY1kqPlFWRZN8hzuuNS2Tv3qUjavTp5XGotVPLHj1Cg/cwGcf8EAssYTwTy7H0PgdQKwqigQD1f1s/j4iXQ=,iv:1xP38/Ayt1xvn2fJGa5zgOrVNOw2J5taG1Orx6uNgZI=,tag:H9JXu9gzyyvTPWgXaoTsiw==,type:str]
|
newt: ENC[AES256_GCM,data:r5Rd81ZrzrIYbXtFkypbJltoGCOYrW6P4IpwGCtaH7lqCg7wD/WMboMx13HN4Mm0J4qbBpDakpfVv9qUTrisYP1xwpKkmY1kqPlFWRZN8hzuuNS2Tv3qUjavTp5XGotVPLHj1Cg/cwGcf8EAssYTwTy7H0PgdQKwqigQD1f1s/j4iXQ=,iv:1xP38/Ayt1xvn2fJGa5zgOrVNOw2J5taG1Orx6uNgZI=,tag:H9JXu9gzyyvTPWgXaoTsiw==,type:str]
|
||||||
@@ -27,7 +28,7 @@ sops:
|
|||||||
TLKEYsPQgOJ7s8P9gw2uPUY6HRz86CtiC6EbO27u0+8BbI85x1QScg==
|
TLKEYsPQgOJ7s8P9gw2uPUY6HRz86CtiC6EbO27u0+8BbI85x1QScg==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
recipient: age1huqa3hc7wcxk4dpelrzny437nzrx4fnll3d8g9ahznzk268yju5qufapxy
|
recipient: age1huqa3hc7wcxk4dpelrzny437nzrx4fnll3d8g9ahznzk268yju5qufapxy
|
||||||
lastmodified: "2026-08-12T13:48:51Z"
|
lastmodified: "2026-09-16T14:20:26Z"
|
||||||
mac: ENC[AES256_GCM,data:0GyC8VW0qoPaIcKfGKto8wDF64gDmiIhczok8oiJ0l5B7+ZUCVAKmWkMaXHyrU7kqg06WSiIixsnclEjIMxlyZVBOcfQaXeSO51uom/ax+4CfzxSGxgnpySarWRfCHgkcGUeO/eci5MzmZPgAHy7b8IBcJWzVUCS7XBIMMyYwNs=,iv:yUsltZZ1y4fzi3Kakwt/ji/J+r/P1/3mLEQqZiN2pm4=,tag:6Fwo34LOX+jCXF9DoYUv/A==,type:str]
|
mac: ENC[AES256_GCM,data:I33KZL3u+7jfOFu0qn4LVx2nACiURSd6RcEn0ojfT62yC/TcXlGGu4QeN1Dx4Nta77n/h8RzDTcZtiUJylLhiVBmqyMOoNaBOmLDJ+P1L7weYLoWMoaDP7IWyzttGkNTgvyv2nW5IxbdcTZwrcSlPtdupsJeNy76ATHO+eUsvGQ=,iv:FvQKGH5Vzm36huGDnMr15wQL9vsH2hsAhvu0BE/NfEI=,tag:fzAzzgmv3vjWs1VYhh4GeA==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.13.3
|
version: 3.13.3
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{ config, ... }: {
|
{config, ...}: {
|
||||||
flake.modules.nixos.canopus =
|
flake.modules.nixos.canopus = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixos; [
|
imports = with config.flake.modules.nixos; [
|
||||||
boot
|
boot
|
||||||
networking
|
networking
|
||||||
@@ -29,11 +27,14 @@
|
|||||||
".bun"
|
".bun"
|
||||||
".rustup"
|
".rustup"
|
||||||
".cache/awww"
|
".cache/awww"
|
||||||
|
".cache/serpantinum"
|
||||||
".config/BraveSoftware"
|
".config/BraveSoftware"
|
||||||
".config/zed"
|
".config/zed"
|
||||||
".config/Vencord"
|
".config/Vencord"
|
||||||
".config/vesktop"
|
".config/vesktop"
|
||||||
".config/sops"
|
".config/sops"
|
||||||
|
".config/nix"
|
||||||
|
".config/coderv2"
|
||||||
".config/obs-studio"
|
".config/obs-studio"
|
||||||
".config/easyeffects"
|
".config/easyeffects"
|
||||||
".config/DankMaterialShell"
|
".config/DankMaterialShell"
|
||||||
@@ -51,10 +52,18 @@
|
|||||||
".local/share/GalaxyBudsClient"
|
".local/share/GalaxyBudsClient"
|
||||||
".local/state/serpantinum"
|
".local/state/serpantinum"
|
||||||
".local/share/zed"
|
".local/share/zed"
|
||||||
|
|
||||||
|
".claude"
|
||||||
|
".orca"
|
||||||
|
".config/orca"
|
||||||
|
".zcode"
|
||||||
|
".config/ZCode"
|
||||||
];
|
];
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
".wakatime.cfg"
|
".wakatime.cfg"
|
||||||
|
".claude.json"
|
||||||
|
".config/gh/hosts.yml"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -72,6 +81,8 @@
|
|||||||
waydroid.enable = true;
|
waydroid.enable = true;
|
||||||
distrobox.enable = true;
|
distrobox.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
@@ -95,6 +106,11 @@
|
|||||||
owner = userName;
|
owner = userName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zai-coding-plan-api-key = {
|
||||||
|
sopsFile = ./secrets.yaml;
|
||||||
|
owner = userName;
|
||||||
|
};
|
||||||
|
|
||||||
netbird-key = {
|
netbird-key = {
|
||||||
sopsFile = ./secrets.yaml;
|
sopsFile = ./secrets.yaml;
|
||||||
owner = userName;
|
owner = userName;
|
||||||
@@ -132,6 +148,10 @@
|
|||||||
telegram-desktop
|
telegram-desktop
|
||||||
galaxy-buds-client
|
galaxy-buds-client
|
||||||
impala
|
impala
|
||||||
|
llm-agents.claude-code
|
||||||
|
llm-agents.orca
|
||||||
|
llm-agents.zcode
|
||||||
|
coder
|
||||||
];
|
];
|
||||||
|
|
||||||
# !!! DO NOT CHANGE THIS !!!
|
# !!! DO NOT CHANGE THIS !!!
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.canopus = {
|
||||||
flake.modules.nixos.canopus =
|
config,
|
||||||
{ config, lib, ... }:
|
lib,
|
||||||
let
|
...
|
||||||
|
}: let
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
@@ -43,7 +43,8 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
# Base subvolumes that always exist
|
# Base subvolumes that always exist
|
||||||
subvolumes = {
|
subvolumes =
|
||||||
|
{
|
||||||
"/root" = {
|
"/root" = {
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
{ inputs, config, ... }:
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.canopus =
|
inputs,
|
||||||
{
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules.nixos.canopus = {
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
} @ innerArgs: {
|
||||||
{
|
imports = with config.flake.modules.nixos;
|
||||||
imports =
|
|
||||||
with config.flake.modules.nixos;
|
|
||||||
[
|
[
|
||||||
hardware
|
hardware
|
||||||
]
|
]
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
inputs.cardwire.nixosModules.default
|
inputs.cardwire.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
boot.kernelParams = ["nvidia-drm.modeset=1"];
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
"usb_storage"
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = ["nvidia"];
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
flake.modules.homeManager.canopus = {pkgs, ...}: {
|
||||||
flake.modules.homeManager.canopus = { pkgs, ... }: {
|
|
||||||
imports = with config.flake.modules.homeManager; [
|
imports = with config.flake.modules.homeManager; [
|
||||||
desktop
|
desktop
|
||||||
];
|
];
|
||||||
@@ -27,8 +26,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
authorized_fingerprints = {
|
authorized_fingerprints = {
|
||||||
"f4:4b:17:61:f7:01:a4:a2:e1:c7:8c:1c:7a:f3:8b:87:14:3d:05:3d:a0:8b:cc:e7:88:d8:d8:d2:a4:c2:75:8b" =
|
"f4:4b:17:61:f7:01:a4:a2:e1:c7:8c:1c:7a:f3:8b:87:14:3d:05:3d:a0:8b:cc:e7:88:d8:d8:d2:a4:c2:75:8b" = "sirius";
|
||||||
"sirius";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ tux-password: ENC[AES256_GCM,data:Xb4/JMAZCBnBheDCJdRRGXLnMJ1ej8HbN+AUqA/+2sdYES
|
|||||||
gemini-api-key: ENC[AES256_GCM,data:Q6+actg0oyUWiUJVy/9yZmea1QyGu2o8LfMsuAVFD6k7kp0dYIrl,iv:ukyouqrHxzVpBBE98KL6PW8P3j+seemm/e0Gl1urUcM=,tag:Z7MM3dJ414CmdxE72cdzNA==,type:str]
|
gemini-api-key: ENC[AES256_GCM,data:Q6+actg0oyUWiUJVy/9yZmea1QyGu2o8LfMsuAVFD6k7kp0dYIrl,iv:ukyouqrHxzVpBBE98KL6PW8P3j+seemm/e0Gl1urUcM=,tag:Z7MM3dJ414CmdxE72cdzNA==,type:str]
|
||||||
openrouter-api-key: ENC[AES256_GCM,data:SalhWKR6artX/kOVKZGpKSmrgsQDU/heshrdkK3wotOZ3BRn/ZqZRBldvl1JPSenMAMvE2LWUdmBQmwG/id7L7JL1O/+lUHIQw==,iv:hLlHayFJgUkWOirVLfqP0pGRBZAqGKe+EE2yG1ELGNk=,tag:0qoo0tb+xWjjQXr4n1qGmw==,type:str]
|
openrouter-api-key: ENC[AES256_GCM,data:SalhWKR6artX/kOVKZGpKSmrgsQDU/heshrdkK3wotOZ3BRn/ZqZRBldvl1JPSenMAMvE2LWUdmBQmwG/id7L7JL1O/+lUHIQw==,iv:hLlHayFJgUkWOirVLfqP0pGRBZAqGKe+EE2yG1ELGNk=,tag:0qoo0tb+xWjjQXr4n1qGmw==,type:str]
|
||||||
opencode-go-api-key: ENC[AES256_GCM,data:zbeTcaXJZFVfYnM/7sgblJFU9WfeosX/44KsXvrzKwiLPfGLLYYo9AFaCvWzzG6jHuSZC5OYrBWfOZv4+3omfCgglQ==,iv:LscUQE+PNhXGim9PSqc9nZIZichWSgAn/zsNxQ/HM/o=,tag:MaBCobnRM42fopiibibe5Q==,type:str]
|
opencode-go-api-key: ENC[AES256_GCM,data:zbeTcaXJZFVfYnM/7sgblJFU9WfeosX/44KsXvrzKwiLPfGLLYYo9AFaCvWzzG6jHuSZC5OYrBWfOZv4+3omfCgglQ==,iv:LscUQE+PNhXGim9PSqc9nZIZichWSgAn/zsNxQ/HM/o=,tag:MaBCobnRM42fopiibibe5Q==,type:str]
|
||||||
|
zai-coding-plan-api-key: ENC[AES256_GCM,data:osUoFOvBgu+PtNiTIDIm3JoxsBJnQ9I8zY//9oeTpJxIvMctSWYnT4GYP4oI5mClZg==,iv:z5qxUPomGF1avLyk8PrAS3t+34ZGlQMRjbxVJ4JH9Cc=,tag:Qbz/LYAMXejXU4RS3RUPqA==,type:str]
|
||||||
netbird-key: ENC[AES256_GCM,data:swmaa+RjxeUmEl8hS2riGrW4lP5jdks9HM3x57/FLpOuqFtR,iv:MrpVjiocrPi+dBGPk7pwgSUNlJ1eryRpMjC8+jkU+T0=,tag:j6sqpQ02apqc6FwkdDvk9g==,type:str]
|
netbird-key: ENC[AES256_GCM,data:swmaa+RjxeUmEl8hS2riGrW4lP5jdks9HM3x57/FLpOuqFtR,iv:MrpVjiocrPi+dBGPk7pwgSUNlJ1eryRpMjC8+jkU+T0=,tag:j6sqpQ02apqc6FwkdDvk9g==,type:str]
|
||||||
vicinae-json: ENC[AES256_GCM,data:FarBf6l8pl3hF7kGKPIWztUhwiKoQXmyTufCuJ120K/bPh1Bfiyi+ETt4DLYOGI6FJXfpVz4BbZOA29bXTLhVPxH0QtyBu/F5uEqA015b/c8VevDJSyy9huR13qO9ksLbMBt8RfWbAd9j26t7A1C8/mMyiJOEXCCTV9CEIW3xWrsYmhwsT8RYM+PwrPSeN1gQXHSMyRUjf/kOdJoda8+iXpLfjo4II4r2ELpbqi8QxhrRdsJsoOfAymFM784NtlTjE+h6S4TMehmoF/9ARif6I5SGQ0WfIKt/8orTGCPllL+NupLziSnpIGRGSybdArD+o5NCw59GOAbVRADxq8rCESwEkq3cF+hm8HabfYbiQ==,iv:Y/hXLFTJT3gNF3B6tgKoAh7njVuneoUzjVTlsCZiySw=,tag:2hfrwph6IccJdRu/yGu3XA==,type:str]
|
vicinae-json: ENC[AES256_GCM,data:FarBf6l8pl3hF7kGKPIWztUhwiKoQXmyTufCuJ120K/bPh1Bfiyi+ETt4DLYOGI6FJXfpVz4BbZOA29bXTLhVPxH0QtyBu/F5uEqA015b/c8VevDJSyy9huR13qO9ksLbMBt8RfWbAd9j26t7A1C8/mMyiJOEXCCTV9CEIW3xWrsYmhwsT8RYM+PwrPSeN1gQXHSMyRUjf/kOdJoda8+iXpLfjo4II4r2ELpbqi8QxhrRdsJsoOfAymFM784NtlTjE+h6S4TMehmoF/9ARif6I5SGQ0WfIKt/8orTGCPllL+NupLziSnpIGRGSybdArD+o5NCw59GOAbVRADxq8rCESwEkq3cF+hm8HabfYbiQ==,iv:Y/hXLFTJT3gNF3B6tgKoAh7njVuneoUzjVTlsCZiySw=,tag:2hfrwph6IccJdRu/yGu3XA==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- recipient: age14vktfes95f33vuefwnmuvryas7az04u76dsgyhfvsx73czkvmp2q7njkl4
|
- enc: |
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBqS2RZdVJaNTlRamZPMkll
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBqS2RZdVJaNTlRamZPMkll
|
||||||
MDRVSVl1b2x2LzZpdlBrdmZtdyt3UE15RldRCldXUXE2a1BFeHg5NGNPbW5IMDht
|
MDRVSVl1b2x2LzZpdlBrdmZtdyt3UE15RldRCldXUXE2a1BFeHg5NGNPbW5IMDht
|
||||||
@@ -15,8 +15,8 @@ sops:
|
|||||||
bThQTFdZU29ISm93TWcwVk5ZTkhRWm8KCcprmLGhahgDkXCBpzjctHgao+gc+rKC
|
bThQTFdZU29ISm93TWcwVk5ZTkhRWm8KCcprmLGhahgDkXCBpzjctHgao+gc+rKC
|
||||||
xLIwheUyFJOGK+ixqcdoZ/PC0kY68hVLt1YzLAyxFi4Ur1wltPrNug==
|
xLIwheUyFJOGK+ixqcdoZ/PC0kY68hVLt1YzLAyxFi4Ur1wltPrNug==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
- recipient: age1x36yr8h993srfj29sfpzt4wyz52nztvncpmhgmfs0j26qvfecq3qvcm0an
|
recipient: age14vktfes95f33vuefwnmuvryas7az04u76dsgyhfvsx73czkvmp2q7njkl4
|
||||||
enc: |
|
- enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBGVW13WFE1Ylh3Uk1HNU1i
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBGVW13WFE1Ylh3Uk1HNU1i
|
||||||
bU9kRzFqTmhkQlRzMlRkM0VhMlNmMDUyK25NCkZYUStxM2tScGozRXJGekxGa1RX
|
bU9kRzFqTmhkQlRzMlRkM0VhMlNmMDUyK25NCkZYUStxM2tScGozRXJGekxGa1RX
|
||||||
@@ -24,7 +24,8 @@ sops:
|
|||||||
V1N3eUVjZ0VZRjBZdXRPNng3Y3JoUTAKQau9CG9XfvM+5JZVRwaJr/o/sXMaJiy2
|
V1N3eUVjZ0VZRjBZdXRPNng3Y3JoUTAKQau9CG9XfvM+5JZVRwaJr/o/sXMaJiy2
|
||||||
wo2YcDb+4vfT4Wr+/8J3ccQgbLRZH916X5ZPL+A+nFyVXVKOCl3ENg==
|
wo2YcDb+4vfT4Wr+/8J3ccQgbLRZH916X5ZPL+A+nFyVXVKOCl3ENg==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2026-05-12T06:33:00Z"
|
recipient: age1x36yr8h993srfj29sfpzt4wyz52nztvncpmhgmfs0j26qvfecq3qvcm0an
|
||||||
mac: ENC[AES256_GCM,data:htDJdEx34Q5NG8vwbBimnFENZawbLZ4FC0DkyG6J5RYP0BFnycKcKGsYR87SvIjcJZXvfZ0e6fXdtc78dd6I0sQtrQ7aNn4Iktbu/AkPmntsBwpIjVI99X9zUyQB87go/oX15yuyt8loB6ds2RkL/pfFsgLbFc10JHsBy+WcEzI=,iv:HvY+5LYzyHpRm8XCSKrN8ra/LJT9v23TPSsZg/4QVNU=,tag:k+d45+zgBYq4vlWmmc8ZkQ==,type:str]
|
lastmodified: "2026-09-16T14:20:36Z"
|
||||||
|
mac: ENC[AES256_GCM,data:mhJvvn/+VBfNrP1pXRweLSNVlHq9/DLDcKQv8k9ZVsEcd077ifEAqduOXVKXcXDM0VTuBzArw9hmih+kZbCHoUZAQrk8LF7FC4a4FFwXG9p45uKWbUloTuq5w3MCxyU8IoyiAufZcWUlYFQjZ8K4n8N0bVrGQGHogemnrBXTUIo=,iv:H3tKQOuIe/pEIp0pUWCSar8VDompXNZ4BZfD1Wg4pb0=,tag:lyPR4Prlal1bpSRLmGfy7A==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.12.2
|
version: 3.13.3
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{ config, ... }: {
|
{config, ...}: {
|
||||||
flake.modules.nixos.sirius =
|
flake.modules.nixos.sirius = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixos; [
|
imports = with config.flake.modules.nixos; [
|
||||||
boot
|
boot
|
||||||
networking
|
networking
|
||||||
@@ -25,15 +23,18 @@
|
|||||||
home = {
|
home = {
|
||||||
directories = [
|
directories = [
|
||||||
"Distrobox"
|
"Distrobox"
|
||||||
|
".steam"
|
||||||
".bun"
|
".bun"
|
||||||
".rustup"
|
".rustup"
|
||||||
".steam"
|
|
||||||
".cache/awww"
|
".cache/awww"
|
||||||
|
".cache/serpantinum"
|
||||||
".config/BraveSoftware"
|
".config/BraveSoftware"
|
||||||
".config/zed"
|
".config/zed"
|
||||||
".config/Vencord"
|
".config/Vencord"
|
||||||
".config/vesktop"
|
".config/vesktop"
|
||||||
".config/sops"
|
".config/sops"
|
||||||
|
".config/nix"
|
||||||
|
".config/coderv2"
|
||||||
".config/obs-studio"
|
".config/obs-studio"
|
||||||
".config/easyeffects"
|
".config/easyeffects"
|
||||||
".config/DankMaterialShell"
|
".config/DankMaterialShell"
|
||||||
@@ -48,13 +49,22 @@
|
|||||||
".local/state/lazygit"
|
".local/state/lazygit"
|
||||||
".local/share/vicinae"
|
".local/share/vicinae"
|
||||||
".local/share/TelegramDesktop"
|
".local/share/TelegramDesktop"
|
||||||
|
".local/share/GalaxyBudsClient"
|
||||||
".local/state/serpantinum"
|
".local/state/serpantinum"
|
||||||
".local/share/zed"
|
".local/share/zed"
|
||||||
|
|
||||||
|
".claude"
|
||||||
|
".orca"
|
||||||
|
".config/orca"
|
||||||
|
".zcode"
|
||||||
|
".config/ZCode"
|
||||||
];
|
];
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
".wakatime.cfg"
|
".wakatime.cfg"
|
||||||
".config/lan-mouse/lan-mouse.pem"
|
".config/lan-mouse/lan-mouse.pem"
|
||||||
|
".claude.json"
|
||||||
|
".config/gh/hosts.yml"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -72,6 +82,8 @@
|
|||||||
waydroid.enable = true;
|
waydroid.enable = true;
|
||||||
distrobox.enable = true;
|
distrobox.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
@@ -95,6 +107,11 @@
|
|||||||
owner = userName;
|
owner = userName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zai-coding-plan-api-key = {
|
||||||
|
sopsFile = ./secrets.yaml;
|
||||||
|
owner = userName;
|
||||||
|
};
|
||||||
|
|
||||||
netbird-key = {
|
netbird-key = {
|
||||||
sopsFile = ./secrets.yaml;
|
sopsFile = ./secrets.yaml;
|
||||||
owner = userName;
|
owner = userName;
|
||||||
@@ -130,7 +147,12 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
davinci-resolve
|
davinci-resolve
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
|
galaxy-buds-client
|
||||||
impala
|
impala
|
||||||
|
llm-agents.claude-code
|
||||||
|
llm-agents.orca
|
||||||
|
llm-agents.zcode
|
||||||
|
coder
|
||||||
];
|
];
|
||||||
|
|
||||||
# !!! DO NOT CHANGE THIS !!!
|
# !!! DO NOT CHANGE THIS !!!
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.sirius = {
|
||||||
flake.modules.nixos.sirius =
|
config,
|
||||||
{ config, lib, ... }:
|
lib,
|
||||||
let
|
...
|
||||||
|
}: let
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
@@ -43,7 +43,8 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
# Base subvolumes that always exist
|
# Base subvolumes that always exist
|
||||||
subvolumes = {
|
subvolumes =
|
||||||
|
{
|
||||||
"/root" = {
|
"/root" = {
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
{ inputs, config, ... }:
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.sirius =
|
inputs,
|
||||||
{
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules.nixos.sirius = {
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}@innerArgs:
|
} @ innerArgs: {
|
||||||
{
|
imports = with config.flake.modules.nixos;
|
||||||
imports =
|
|
||||||
with config.flake.modules.nixos;
|
|
||||||
[
|
[
|
||||||
hardware
|
hardware
|
||||||
]
|
]
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
inputs.cardwire.nixosModules.default
|
inputs.cardwire.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
|
boot.kernelParams = ["nvidia-drm.modeset=1"];
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
@@ -26,9 +26,9 @@
|
|||||||
"usb_storage"
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = ["nvidia"];
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
cardwire = {
|
cardwire = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
flake.modules.homeManager.sirius = {
|
flake.modules.homeManager.sirius = {
|
||||||
imports = with config.flake.modules.homeManager; [
|
imports = with config.flake.modules.homeManager; [
|
||||||
desktop
|
desktop
|
||||||
@@ -45,7 +44,7 @@
|
|||||||
position = "bottom";
|
position = "bottom";
|
||||||
hostname = "canopus";
|
hostname = "canopus";
|
||||||
activate_on_startup = true;
|
activate_on_startup = true;
|
||||||
ips = [ "192.168.8.2" ];
|
ips = ["192.168.8.2"];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ tux-password: ENC[AES256_GCM,data:JWQVd2MYX2U4UP4II62ixG9hWI5MtgHAFhl8aCmyrYPl1H
|
|||||||
gemini-api-key: ENC[AES256_GCM,data:Y9YgXp/tB3Q1Rb5YMsZLgWCq+bdeIjsXAVeO3Yh7nZ8MwDH7d5De,iv:FIXxJCn6JDYsHIoNn8f8Un3z9ZPVbxdjR48Ux88poRg=,tag:bMJ4i69HTspnhzsrsxkbrw==,type:str]
|
gemini-api-key: ENC[AES256_GCM,data:Y9YgXp/tB3Q1Rb5YMsZLgWCq+bdeIjsXAVeO3Yh7nZ8MwDH7d5De,iv:FIXxJCn6JDYsHIoNn8f8Un3z9ZPVbxdjR48Ux88poRg=,tag:bMJ4i69HTspnhzsrsxkbrw==,type:str]
|
||||||
openrouter-api-key: ENC[AES256_GCM,data:HfZgZz4NyCLLM9woTZp2I6JGOlVcFblw2OMjx8k0TG5ZU2ycBCF6bKqp3wFibUxXcHy+nIfjI82fkLeSyIaGILRLYCJCc8BHKw==,iv:umUcn8MRaj7JXo6IFrGMXOu+jsFSCEikMxsQxfaFS/Q=,tag:l2s61C4EpJoKv8cc9nYGFA==,type:str]
|
openrouter-api-key: ENC[AES256_GCM,data:HfZgZz4NyCLLM9woTZp2I6JGOlVcFblw2OMjx8k0TG5ZU2ycBCF6bKqp3wFibUxXcHy+nIfjI82fkLeSyIaGILRLYCJCc8BHKw==,iv:umUcn8MRaj7JXo6IFrGMXOu+jsFSCEikMxsQxfaFS/Q=,tag:l2s61C4EpJoKv8cc9nYGFA==,type:str]
|
||||||
opencode-go-api-key: ENC[AES256_GCM,data:BGERcZg5Jpnznc4cXeYFMhPk9kKBkd9GvIuQBV9TW3JE1utgrLLYK6mKNCQqrEStRFiO2jUUnBm3opUNL4SuEHFLpw==,iv:fgFAwx6z9yruK27PvAJX/Q2CS9gU+LJ5zMUK/f/rzpo=,tag:BPu3M+jppPB8sLoLmfuY/Q==,type:str]
|
opencode-go-api-key: ENC[AES256_GCM,data:BGERcZg5Jpnznc4cXeYFMhPk9kKBkd9GvIuQBV9TW3JE1utgrLLYK6mKNCQqrEStRFiO2jUUnBm3opUNL4SuEHFLpw==,iv:fgFAwx6z9yruK27PvAJX/Q2CS9gU+LJ5zMUK/f/rzpo=,tag:BPu3M+jppPB8sLoLmfuY/Q==,type:str]
|
||||||
|
zai-coding-plan-api-key: ENC[AES256_GCM,data:u5RHaBq5WHit+GjcKYnr6vN7jkputBtt3G0lCNBciMgBnBzIcZd/JjJcNaKXfbal5w==,iv:x+mG1aoct7yfm4Hvu1mMqBq8MiF8UZbQ8SFjA99qTIw=,tag:9cEIO2tuhqE6df2M2N/R+g==,type:str]
|
||||||
netbird-key: ENC[AES256_GCM,data:qXAnRnLM2TlzpOvWG4exJv0+pUvpe0FpRN5xOWx3+KNt+yhq,iv:X+yl4o1RSYMCMWdVXo1hpzy+6IdKXUpsKPtYNSiHiCY=,tag:I8HbnD5iw6EJ1TdsNrhvfw==,type:str]
|
netbird-key: ENC[AES256_GCM,data:qXAnRnLM2TlzpOvWG4exJv0+pUvpe0FpRN5xOWx3+KNt+yhq,iv:X+yl4o1RSYMCMWdVXo1hpzy+6IdKXUpsKPtYNSiHiCY=,tag:I8HbnD5iw6EJ1TdsNrhvfw==,type:str]
|
||||||
vicinae-json: ENC[AES256_GCM,data:JjxolEgS6uakqR4eHOx3VyrOO5kaL4dj1jcEiLWsrktCU32UB7OmP1kJEVomA1rZjODpFHL89+FRpcNFspTFrc365WlANE81RLg/M2Ja1MiLYaDFNcBGtqMX9Yc1muor53Xl7t+rTSvDIj1oE1L7xPPcjCLfwC5QDzJjCBWj9FhCxnU5BwvoJNv9vgA6xnkzAOYSPZK/ihULMD0DxyqOUEa5ECGX62OPM9Gbr7jEviaItYzOOxaRs/yQVqizodGGl/BcK6fPqvOYSxip9ABYRVSI9ZvysY7ofAkeX91ardPwVG5VvEYfxZwBvGFjV7ZfTzVkK+BiUUNrvciAETHqwkjHftPpfJjxWsgLr8lbOA==,iv:HjDE/sqVDnxeww7r2upxH57rc1+LpuMKnhhyGXoc1Ms=,tag:d2kZeWkg17eVoNACIQ3Q9A==,type:str]
|
vicinae-json: ENC[AES256_GCM,data:JjxolEgS6uakqR4eHOx3VyrOO5kaL4dj1jcEiLWsrktCU32UB7OmP1kJEVomA1rZjODpFHL89+FRpcNFspTFrc365WlANE81RLg/M2Ja1MiLYaDFNcBGtqMX9Yc1muor53Xl7t+rTSvDIj1oE1L7xPPcjCLfwC5QDzJjCBWj9FhCxnU5BwvoJNv9vgA6xnkzAOYSPZK/ihULMD0DxyqOUEa5ECGX62OPM9Gbr7jEviaItYzOOxaRs/yQVqizodGGl/BcK6fPqvOYSxip9ABYRVSI9ZvysY7ofAkeX91ardPwVG5VvEYfxZwBvGFjV7ZfTzVkK+BiUUNrvciAETHqwkjHftPpfJjxWsgLr8lbOA==,iv:HjDE/sqVDnxeww7r2upxH57rc1+LpuMKnhhyGXoc1Ms=,tag:d2kZeWkg17eVoNACIQ3Q9A==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- recipient: age14vktfes95f33vuefwnmuvryas7az04u76dsgyhfvsx73czkvmp2q7njkl4
|
- enc: |
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQNGdHcDc4bTFkR0EyZlUr
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQNGdHcDc4bTFkR0EyZlUr
|
||||||
eXovR1lyeTZJTDg5R281MFFuMHVwOXZXYzNvCkpIT1g3K05WUUswaEVjVVJWQkJq
|
eXovR1lyeTZJTDg5R281MFFuMHVwOXZXYzNvCkpIT1g3K05WUUswaEVjVVJWQkJq
|
||||||
@@ -15,8 +15,8 @@ sops:
|
|||||||
Z0JwWWR0STUybjVhSXdDR3NiKzV1eDQK22HmMuyqYaR/eGuALkAPB1Y5bN2KwIt3
|
Z0JwWWR0STUybjVhSXdDR3NiKzV1eDQK22HmMuyqYaR/eGuALkAPB1Y5bN2KwIt3
|
||||||
pamM8vbnjB//hXoyrv4vsoDk9WzLGFGjgiw2qsM2HQgzQqtrwF1/1A==
|
pamM8vbnjB//hXoyrv4vsoDk9WzLGFGjgiw2qsM2HQgzQqtrwF1/1A==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
- recipient: age1maxsx5tq2h3d92rfyl8ekcdan5gu5cpch4qs3c56cu7qag02xgvs3h0gqc
|
recipient: age14vktfes95f33vuefwnmuvryas7az04u76dsgyhfvsx73czkvmp2q7njkl4
|
||||||
enc: |
|
- enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA1N3ZBd1pHODFtZkZxaHNP
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA1N3ZBd1pHODFtZkZxaHNP
|
||||||
OXlXUzVFS0ZIam1IWVkxNldOdTEwY0s4aUNZCjVlcnF1aXJxUUlQSXhteXJ6OU1W
|
OXlXUzVFS0ZIam1IWVkxNldOdTEwY0s4aUNZCjVlcnF1aXJxUUlQSXhteXJ6OU1W
|
||||||
@@ -24,7 +24,8 @@ sops:
|
|||||||
M3JocWZJeXFxenhXOENBVWpvNkd3bm8KqhNLzCyEAI643jGWpZF/uTchHmBj8ozU
|
M3JocWZJeXFxenhXOENBVWpvNkd3bm8KqhNLzCyEAI643jGWpZF/uTchHmBj8ozU
|
||||||
HtpOzKsshif66D0XOHeJQfQamJI4TyKsj3Sk3j9rstsLmN2lxTRGHg==
|
HtpOzKsshif66D0XOHeJQfQamJI4TyKsj3Sk3j9rstsLmN2lxTRGHg==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2026-05-10T00:35:50Z"
|
recipient: age1maxsx5tq2h3d92rfyl8ekcdan5gu5cpch4qs3c56cu7qag02xgvs3h0gqc
|
||||||
mac: ENC[AES256_GCM,data:u27zQ1PPnWy5Parbh/1DkVP3ICmHnLZJKaLbN3dZEVONgqOWi32LV3t0iNhtLWwVnzFPBusRWahQiqAkUdnQtrXF0OtjPCpLuIw86xB75QPGbet0GZlLNb8/xPshChZe4v520csdJMWiy3vYeKrk8LxMSViAGhmhYK2a5NbGhzI=,iv:/9vePmvCNqoP0kx24fP3HfCjS2FkjBmI5B+SycvKKW4=,tag:gE1/DnLolwhoyfMJYejGIQ==,type:str]
|
lastmodified: "2026-09-16T14:20:48Z"
|
||||||
|
mac: ENC[AES256_GCM,data:i2I6vo/tKTLq44Tu6vI2Cqp0EqQPbwuuRM2WUflD58UCr7huXIKnKrxmB1Hz/fdmpZPiCZ2dSlmOh733fKFclRmpHJLScYRX4+lFXEzToYExZlybVergxC6Cr4IaiB+A/HZIkW6iKK/ULr2mtXYNCqQgDQw8BgJuV2M/bAMM/V4=,iv:9akzmVH4CMMdDS5aukeLOxncMLKfvQCw2BYl36WAfOM=,tag:4F26bqEI8fEtNugqjHCUOg==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.12.2
|
version: 3.13.3
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
flake.modules.nixOnDroid.vega = {
|
||||||
flake.modules.nixOnDroid.vega =
|
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixOnDroid; [
|
imports = with config.flake.modules.nixOnDroid; [
|
||||||
networking
|
networking
|
||||||
];
|
];
|
||||||
@@ -18,18 +15,16 @@
|
|||||||
# android-integration.termux-setup-storage.enable = true;
|
# android-integration.termux-setup-storage.enable = true;
|
||||||
# android-integration.termux-reload-settings.enable = true;
|
# android-integration.termux-reload-settings.enable = true;
|
||||||
|
|
||||||
terminal.font =
|
terminal.font = let
|
||||||
let
|
|
||||||
firacode = pkgs.nerd-fonts.fira-code;
|
firacode = pkgs.nerd-fonts.fira-code;
|
||||||
fontPath = "share/fonts/truetype/NerdFonts/FiraCode/FiraCodeNerdFont-Regular.ttf";
|
fontPath = "share/fonts/truetype/NerdFonts/FiraCode/FiraCodeNerdFont-Regular.ttf";
|
||||||
in
|
in "${firacode}/${fontPath}";
|
||||||
"${firacode}/${fontPath}";
|
|
||||||
|
|
||||||
time.timeZone = "Asia/Kolkata";
|
time.timeZone = "Asia/Kolkata";
|
||||||
|
|
||||||
tnix.networking.openssh = {
|
tnix.networking.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [ 8033 ];
|
ports = [8033];
|
||||||
authorizedKeys = [
|
authorizedKeys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D ${userEmail}"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D ${userEmail}"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
|
||||||
flake.modules.homeManager.vega = {
|
flake.modules.homeManager.vega = {
|
||||||
# @TODO: Broken currently - By default it's enabled by neovim module
|
# @TODO: Broken currently - By default it's enabled by neovim module
|
||||||
programs.vim.enable = lib.mkForce false;
|
programs.vim.enable = lib.mkForce false;
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
flake.modules.nixos.vps = {hostName, ...}: {
|
||||||
flake.modules.nixos.vps =
|
|
||||||
{
|
|
||||||
hostName,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = with config.flake.modules.nixos; [
|
imports = with config.flake.modules.nixos; [
|
||||||
boot
|
boot
|
||||||
networking
|
networking
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.vps = {
|
||||||
flake.modules.nixos.vps =
|
config,
|
||||||
{ config, lib, ... }:
|
lib,
|
||||||
let
|
...
|
||||||
|
}: let
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
isLegacy = config.tnix.boot.legacy.enable;
|
isLegacy = config.tnix.boot.legacy.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions =
|
||||||
|
{
|
||||||
ESP = {
|
ESP = {
|
||||||
size = "1G";
|
size = "1G";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
@@ -36,7 +37,8 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
# Base subvolumes that always exist
|
# Base subvolumes that always exist
|
||||||
subvolumes = {
|
subvolumes =
|
||||||
|
{
|
||||||
"/root" = {
|
"/root" = {
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.vps =
|
flake.modules.nixos.vps = {
|
||||||
{
|
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.boot = {
|
||||||
flake.modules.nixos.boot =
|
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.tnix.boot;
|
cfg = config.tnix.boot;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.impermanence.nixosModules.impermanence
|
inputs.impermanence.nixosModules.impermanence
|
||||||
];
|
];
|
||||||
@@ -20,24 +16,24 @@
|
|||||||
|
|
||||||
directories = lib.mkOption {
|
directories = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
files = lib.mkOption {
|
files = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
options.tnix.boot.impermanence.home = {
|
options.tnix.boot.impermanence.home = {
|
||||||
directories = lib.mkOption {
|
directories = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
files = lib.mkOption {
|
files = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -46,26 +42,30 @@
|
|||||||
fileSystems."/persist".neededForBoot = true;
|
fileSystems."/persist".neededForBoot = true;
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories =
|
||||||
|
[
|
||||||
"/var/log"
|
"/var/log"
|
||||||
"/var/lib"
|
"/var/lib"
|
||||||
"/etc/NetworkManager/system-connections"
|
"/etc/NetworkManager/system-connections"
|
||||||
]
|
]
|
||||||
++ cfg.impermanence.directories;
|
++ cfg.impermanence.directories;
|
||||||
|
|
||||||
files = [
|
files =
|
||||||
|
[
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
"/etc/ssh/ssh_host_ed25519_key"
|
"/etc/ssh/ssh_host_ed25519_key"
|
||||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||||
"/etc/ssh/ssh_host_rsa_key"
|
"/etc/ssh/ssh_host_rsa_key"
|
||||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||||
|
"/etc/ly/save.txt"
|
||||||
]
|
]
|
||||||
++ cfg.impermanence.files;
|
++ cfg.impermanence.files;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${userName} = {
|
home-manager.users.${userName} = {
|
||||||
home.persistence."/persist" = {
|
home.persistence."/persist" = {
|
||||||
directories = [
|
directories =
|
||||||
|
[
|
||||||
"Downloads"
|
"Downloads"
|
||||||
"Music"
|
"Music"
|
||||||
"Wallpapers"
|
"Wallpapers"
|
||||||
@@ -85,9 +85,9 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
services.wipe-my-fs = {
|
services.wipe-my-fs = {
|
||||||
wantedBy = [ "initrd.target" ];
|
wantedBy = ["initrd.target"];
|
||||||
after = [ "initrd-root-device.target" ];
|
after = ["initrd-root-device.target"];
|
||||||
before = [ "sysroot.mount" ];
|
before = ["sysroot.mount"];
|
||||||
unitConfig.DefaultDependencies = "no";
|
unitConfig.DefaultDependencies = "no";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.boot =
|
flake.modules.nixos.boot = {
|
||||||
{ config, lib, ... }:
|
config,
|
||||||
let
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
cfg = config.tnix.boot;
|
cfg = config.tnix.boot;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.boot.legacy = {
|
options.tnix.boot.legacy = {
|
||||||
enable = lib.mkEnableOption "legacy boot (GRUB) instead of systemd-boot";
|
enable = lib.mkEnableOption "legacy boot (GRUB) instead of systemd-boot";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
timeout = 1;
|
timeout = 1;
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.boot =
|
flake.modules.nixos.boot = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
boot = {
|
boot = {
|
||||||
consoleLogLevel = 0;
|
consoleLogLevel = 0;
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
supportedFilesystems = [ "ntfs" ];
|
supportedFilesystems = ["ntfs"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,13 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.boot = {
|
||||||
flake.modules.nixos.boot =
|
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.tnix.boot;
|
cfg = config.tnix.boot;
|
||||||
in
|
in {
|
||||||
{
|
imports = [inputs.lanzaboote.nixosModules.lanzaboote];
|
||||||
imports = [ inputs.lanzaboote.nixosModules.lanzaboote ];
|
|
||||||
|
|
||||||
options.tnix.boot.secure-boot = {
|
options.tnix.boot.secure-boot = {
|
||||||
enable = lib.mkEnableOption "Enable secure-boot";
|
enable = lib.mkEnableOption "Enable secure-boot";
|
||||||
@@ -25,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.sbctl ];
|
environment.systemPackages = [pkgs.sbctl];
|
||||||
|
|
||||||
# Lanzaboote replaces systemd-boot, so force it off
|
# Lanzaboote replaces systemd-boot, so force it off
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
|||||||
5
modules/nixos/core/env.nix
Normal file
5
modules/nixos/core/env.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.core = {...}: {
|
||||||
|
environment.enableAllTerminfo = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
{ inputs, config, ... }:
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.core =
|
inputs,
|
||||||
{
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.modules.nixos.core = {
|
||||||
hostName,
|
hostName,
|
||||||
userName,
|
userName,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.core =
|
flake.modules.nixos.core = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.core = {pkgs, ...}: {
|
||||||
flake.modules.nixos.core = { pkgs, ... }: {
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-index-database.nixosModules.default
|
inputs.nix-index-database.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|||||||
18
modules/nixos/core/nix-ld.nix
Normal file
18
modules/nixos/core/nix-ld.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{...}: {
|
||||||
|
flake.modules.nixos.core = {
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.tnix.programs.nix-ld;
|
||||||
|
in {
|
||||||
|
options.tnix.programs.nix-ld = {
|
||||||
|
enable = mkEnableOption "nix-ld";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.core =
|
flake.modules.nixos.core = {userName, ...}: {
|
||||||
{ userName, ... }:
|
|
||||||
{
|
|
||||||
nix = {
|
nix = {
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
|
||||||
flake.modules.nixos.core = {
|
flake.modules.nixos.core = {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
@@ -1,18 +1,14 @@
|
|||||||
{ inputs, ... }:
|
{inputs, ...}: {
|
||||||
{
|
flake.modules.nixos.core = {
|
||||||
flake.modules.nixos.core =
|
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
isEd25519 = k: k.type == "ed25519";
|
isEd25519 = k: k.type == "ed25519";
|
||||||
getKeyPath = k: k.path;
|
getKeyPath = k: k.path;
|
||||||
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
||||||
in
|
in {
|
||||||
{
|
imports = [inputs.sops-nix.nixosModules.sops];
|
||||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
|
||||||
|
|
||||||
sops.age = {
|
sops.age = {
|
||||||
sshKeyPaths = map getKeyPath keys;
|
sshKeyPaths = map getKeyPath keys;
|
||||||
@@ -20,6 +16,6 @@
|
|||||||
generateKey = true;
|
generateKey = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ sops ];
|
environment.systemPackages = with pkgs; [sops];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,10 @@
|
|||||||
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
|
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
|
||||||
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
|
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
|
||||||
];
|
];
|
||||||
|
extra-substituters = ["https://cache.numtide.com"];
|
||||||
|
extra-trusted-public-keys = [
|
||||||
|
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.core =
|
flake.modules.nixos.core = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
userName,
|
userName,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
hasPasswordSecret = lib.hasAttrByPath ["sops" "secrets" "tux-password"] config;
|
||||||
hasPasswordSecret = lib.hasAttrByPath [ "sops" "secrets" "tux-password" ] config;
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Asia/Kolkata";
|
time.timeZone = "Asia/Kolkata";
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
fonts.packages = with pkgs.nerd-fonts; [
|
fonts.packages = with pkgs.nerd-fonts; [
|
||||||
fira-code
|
fira-code
|
||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.gpu-screen-recorder = {
|
programs.gpu-screen-recorder = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.hyprland-git.hyprland;
|
package = pkgs.hyprland-git.hyprland;
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
{
|
{inputs, ...}: {
|
||||||
inputs,
|
flake.modules.nixos.desktop = {
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
flake.modules.nixos.desktop =
|
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.mango.nixosModules.mango
|
inputs.mango.nixosModules.mango
|
||||||
];
|
];
|
||||||
@@ -28,8 +22,8 @@
|
|||||||
"hyprland"
|
"hyprland"
|
||||||
"gtk"
|
"gtk"
|
||||||
];
|
];
|
||||||
"org.freedesktop.impl.portal.ScreenCast" = lib.mkForce [ "hyprland" ];
|
"org.freedesktop.impl.portal.ScreenCast" = lib.mkForce ["hyprland"];
|
||||||
"org.freedesktop.impl.portal.ScreenShot" = lib.mkForce [ "hyprland" ];
|
"org.freedesktop.impl.portal.ScreenShot" = lib.mkForce ["hyprland"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
environment.systemPackages = with pkgs; [brightnessctl];
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [ brightnessctl ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.obs-studio = {
|
programs.obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableVirtualCamera = true;
|
enableVirtualCamera = true;
|
||||||
@@ -9,6 +7,7 @@
|
|||||||
obs-vaapi
|
obs-vaapi
|
||||||
wlrobs
|
wlrobs
|
||||||
obs-source-record
|
obs-source-record
|
||||||
|
obs-advanced-masks
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
tumbler.enable = true;
|
tumbler.enable = true;
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.desktop =
|
flake.modules.nixos.desktop = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
environment.systemPackages = with pkgs; [tshell];
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [ tshell ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.gaming =
|
flake.modules.nixos.gaming = {pkgs, ...}: {
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
protontricks.enable = true;
|
protontricks.enable = true;
|
||||||
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
extraCompatPackages = with pkgs; [proton-ge-bin];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.hardware = { pkgs, ... }: {
|
flake.modules.nixos.hardware = {pkgs, ...}: {
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.hardware = { pkgs, ... }: {
|
flake.modules.nixos.hardware = {pkgs, ...}: {
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.networking =
|
flake.modules.nixos.networking = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
hostName,
|
hostName,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.networking.netbird-client;
|
cfg = config.tnix.networking.netbird-client;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.networking.netbird-client = {
|
options.tnix.networking.netbird-client = {
|
||||||
enable = mkEnableOption "Enable netbird client";
|
enable = mkEnableOption "Enable netbird client";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.networking =
|
flake.modules.nixos.networking = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.networking.newt;
|
cfg = config.tnix.networking.newt;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.networking.newt = {
|
options.tnix.networking.newt = {
|
||||||
enable = mkEnableOption "Newt";
|
enable = mkEnableOption "Newt";
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +1,22 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.networking =
|
flake.modules.nixos.networking = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.networking.openssh;
|
cfg = config.tnix.networking.openssh;
|
||||||
|
|
||||||
# Sops needs acess to the keys before the persist dirs are even mounted; so
|
# Sops needs acess to the keys before the persist dirs are even mounted; so
|
||||||
# just persisting the keys won't work, we must point at /persist
|
# just persisting the keys won't work, we must point at /persist
|
||||||
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
hasOptinPersistence = config.tnix.boot.impermanence.enable;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.networking.openssh = {
|
options.tnix.networking.openssh = {
|
||||||
enable = mkEnableOption "Enable OpenSSH server";
|
enable = mkEnableOption "Enable OpenSSH server";
|
||||||
|
|
||||||
ports = mkOption {
|
ports = mkOption {
|
||||||
type = types.listOf types.port;
|
type = types.listOf types.port;
|
||||||
default = [ 22 ];
|
default = [22];
|
||||||
description = ''
|
description = ''
|
||||||
Specifies on which ports the SSH daemon listens.
|
Specifies on which ports the SSH daemon listens.
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.aiostreams;
|
cfg = config.tnix.services.aiostreams;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.aiostreams = {
|
options.tnix.services.aiostreams = {
|
||||||
enable = mkEnableOption "AIOStreams";
|
enable = mkEnableOption "AIOStreams";
|
||||||
|
|
||||||
|
|||||||
95
modules/nixos/services/coder.nix
Normal file
95
modules/nixos/services/coder.nix
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.services = {
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.tnix.services.coder;
|
||||||
|
port = toString cfg.port;
|
||||||
|
in {
|
||||||
|
options.tnix.services.coder = {
|
||||||
|
enable = mkEnableOption "Coder";
|
||||||
|
|
||||||
|
host = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "127.0.0.1";
|
||||||
|
description = "Host on which Coder listens";
|
||||||
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 1116;
|
||||||
|
description = "Port on which Coder listens";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment = options.services.coder.environment;
|
||||||
|
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "";
|
||||||
|
description = "Domain on which Coder is available";
|
||||||
|
};
|
||||||
|
|
||||||
|
configureNginx = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Whether to configure Nginx as a reverse proxy for Coder";
|
||||||
|
};
|
||||||
|
|
||||||
|
configurePangolin = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Whether to configure Pangolin as a reverse proxy for Coder";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
users.users.coder.extraGroups = ["docker"];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
coder = {
|
||||||
|
enable = true;
|
||||||
|
accessUrl = "https://${cfg.domain}";
|
||||||
|
listenAddress = "${cfg.host}:${port}";
|
||||||
|
environment = cfg.environment;
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts.${cfg.domain} = mkIf cfg.configureNginx {
|
||||||
|
forceSSL = acmeHost != "";
|
||||||
|
useACMEHost = mkIf (acmeHost != "") acmeHost;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${cfg.host}:${port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
newt.blueprint.proxy-resources = mkIf cfg.configurePangolin {
|
||||||
|
gitea = {
|
||||||
|
auth = {
|
||||||
|
sso-enabled = false;
|
||||||
|
};
|
||||||
|
full-domain = cfg.domain;
|
||||||
|
name = "coder";
|
||||||
|
protocol = "http";
|
||||||
|
targets = [
|
||||||
|
{
|
||||||
|
hostname = "localhost";
|
||||||
|
method = "http";
|
||||||
|
port = cfg.port;
|
||||||
|
healthcheck = {
|
||||||
|
hostname = "localhost";
|
||||||
|
port = cfg.port;
|
||||||
|
scheme = "http";
|
||||||
|
method = "GET";
|
||||||
|
path = "/";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,19 +1,16 @@
|
|||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
options,
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.copyparty;
|
cfg = config.tnix.services.copyparty;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.copyparty.nixosModules.default
|
inputs.copyparty.nixosModules.default
|
||||||
];
|
];
|
||||||
@@ -75,7 +72,7 @@
|
|||||||
accounts = cfg.accounts;
|
accounts = cfg.accounts;
|
||||||
volumes = cfg.volumes;
|
volumes = cfg.volumes;
|
||||||
package = pkgs.copyparty.override {
|
package = pkgs.copyparty.override {
|
||||||
extraPackages = [ pkgs.exiftool ];
|
extraPackages = [pkgs.exiftool];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.cyber-tux;
|
cfg = config.tnix.services.cyber-tux;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.cyber-tux = {
|
options.tnix.services.cyber-tux = {
|
||||||
enable = mkEnableOption "CyberTux Discord bot";
|
enable = mkEnableOption "CyberTux Discord bot";
|
||||||
|
|
||||||
@@ -41,9 +38,9 @@
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.cyber-tux = {
|
systemd.services.cyber-tux = {
|
||||||
description = "CyberTux Discord bot";
|
description = "CyberTux Discord bot";
|
||||||
after = [ "network-online.target" ];
|
after = ["network-online.target"];
|
||||||
wants = [ "network-online.target" ];
|
wants = ["network-online.target"];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = ["multi-user.target"];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
@@ -83,7 +80,7 @@
|
|||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = [ "@system-service" ];
|
SystemCallFilter = ["@system-service"];
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -99,7 +96,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.groups = mkIf (cfg.group == "cyber-tux") {
|
users.groups = mkIf (cfg.group == "cyber-tux") {
|
||||||
${cfg.group} = { };
|
${cfg.group} = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.gitea;
|
cfg = config.tnix.services.gitea;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.gitea = {
|
options.tnix.services.gitea = {
|
||||||
enable = mkEnableOption "Gitea";
|
enable = mkEnableOption "Gitea";
|
||||||
|
|
||||||
@@ -109,7 +106,7 @@
|
|||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "gitea" ];
|
ensureDatabases = ["gitea"];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "gitea";
|
name = "gitea";
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -8,11 +7,9 @@
|
|||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.hermes-agent;
|
cfg = config.tnix.services.hermes-agent;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.hermes-agent.nixosModules.default
|
inputs.hermes-agent.nixosModules.default
|
||||||
];
|
];
|
||||||
@@ -27,7 +24,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings.model = {
|
settings.model = {
|
||||||
provider = "opencode-go";
|
provider = "opencode-go";
|
||||||
default = "deepseek-v4-flash";
|
default = "deepseek-v4.1-flash";
|
||||||
};
|
};
|
||||||
environmentFiles = cfg.environmentFiles;
|
environmentFiles = cfg.environmentFiles;
|
||||||
addToSystemPackages = true;
|
addToSystemPackages = true;
|
||||||
@@ -42,7 +39,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${userName}.extraGroups = [ "hermes" ];
|
users.users.${userName}.extraGroups = ["hermes"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.mediaflow-proxy;
|
cfg = config.tnix.services.mediaflow-proxy;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.mediaflow-proxy = {
|
options.tnix.services.mediaflow-proxy = {
|
||||||
enable = mkEnableOption "MediaFlow Proxy";
|
enable = mkEnableOption "MediaFlow Proxy";
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
userEmail,
|
userEmail,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.nginx;
|
cfg = config.tnix.services.nginx;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.nginx = {
|
options.tnix.services.nginx = {
|
||||||
enable = mkEnableOption "Nginx";
|
enable = mkEnableOption "Nginx";
|
||||||
|
|
||||||
@@ -30,7 +27,7 @@
|
|||||||
"${cfg.domain}" = {
|
"${cfg.domain}" = {
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
domain = "*.${cfg.domain}";
|
domain = "*.${cfg.domain}";
|
||||||
extraDomainNames = [ "${cfg.domain}" ];
|
extraDomainNames = ["${cfg.domain}"];
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
credentialFiles = {
|
credentialFiles = {
|
||||||
CLOUDFLARE_EMAIL_FILE = config.sops.secrets."cloudflare-credentials/email".path;
|
CLOUDFLARE_EMAIL_FILE = config.sops.secrets."cloudflare-credentials/email".path;
|
||||||
@@ -41,7 +38,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.nginx.extraGroups = [ "acme" ];
|
users.users.nginx.extraGroups = ["acme"];
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
userEmail,
|
userEmail,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.pangolin;
|
cfg = config.tnix.services.pangolin;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.pangolin = {
|
options.tnix.services.pangolin = {
|
||||||
enable = mkEnableOption "Pangolin";
|
enable = mkEnableOption "Pangolin";
|
||||||
|
|
||||||
@@ -77,7 +74,7 @@
|
|||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "pangolin" ];
|
ensureDatabases = ["pangolin"];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "pangolin";
|
name = "pangolin";
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
{ inputs, ... }: {
|
{inputs, ...}: {
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.trok;
|
cfg = config.tnix.services.trok;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.trok.nixosModules.default
|
inputs.trok.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.uptime-kuma;
|
cfg = config.tnix.services.uptime-kuma;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.uptime-kuma = {
|
options.tnix.services.uptime-kuma = {
|
||||||
enable = mkEnableOption "Uptime Kuma";
|
enable = mkEnableOption "Uptime Kuma";
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.services =
|
flake.modules.nixos.services = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib; let
|
||||||
let
|
|
||||||
cfg = config.tnix.services.vaultwarden;
|
cfg = config.tnix.services.vaultwarden;
|
||||||
port = toString cfg.port;
|
port = toString cfg.port;
|
||||||
acmeHost = config.tnix.services.nginx.domain;
|
acmeHost = config.tnix.services.nginx.domain;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.services.vaultwarden = {
|
options.tnix.services.vaultwarden = {
|
||||||
enable = mkEnableOption "Vaultwarden";
|
enable = mkEnableOption "Vaultwarden";
|
||||||
|
|
||||||
@@ -106,7 +103,7 @@
|
|||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "vaultwarden" ];
|
ensureDatabases = ["vaultwarden"];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "vaultwarden";
|
name = "vaultwarden";
|
||||||
|
|||||||
@@ -1,22 +1,17 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.virtualisation =
|
flake.modules.nixos.virtualisation = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.tnix.virtualisation;
|
cfg = config.tnix.virtualisation;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.virtualisation.distrobox = {
|
options.tnix.virtualisation.distrobox = {
|
||||||
enable = lib.mkEnableOption "Enable DistroBox";
|
enable = lib.mkEnableOption "Enable DistroBox";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.distrobox.enable {
|
config = lib.mkIf cfg.distrobox.enable {
|
||||||
virtualisation.waydroid.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
distrobox
|
distrobox
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.virtualisation =
|
flake.modules.nixos.virtualisation = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.tnix.virtualisation;
|
cfg = config.tnix.virtualisation;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.virtualisation.docker = {
|
options.tnix.virtualisation.docker = {
|
||||||
enable = lib.mkEnableOption "Docker container runtime";
|
enable = lib.mkEnableOption "Docker container runtime";
|
||||||
nvidia = {
|
nvidia = {
|
||||||
@@ -25,8 +22,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
hardware.nvidia-container-toolkit.enable = lib.mkIf cfg.docker.nvidia.enable true;
|
hardware.nvidia-container-toolkit.enable = lib.mkIf cfg.docker.nvidia.enable true;
|
||||||
environment.systemPackages = with pkgs; [ lazydocker ];
|
environment.systemPackages = with pkgs; [lazydocker];
|
||||||
users.users.${userName}.extraGroups = [ "docker" ];
|
users.users.${userName}.extraGroups = ["docker"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.virtualisation =
|
flake.modules.nixos.virtualisation = {
|
||||||
{
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
cfg = config.tnix.virtualisation;
|
cfg = config.tnix.virtualisation;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.tnix.virtualisation.qemu = {
|
options.tnix.virtualisation.qemu = {
|
||||||
enable = lib.mkEnableOption "QEMU/KVM virtualization with libvirtd";
|
enable = lib.mkEnableOption "QEMU/KVM virtualization with libvirtd";
|
||||||
};
|
};
|
||||||
@@ -26,7 +23,7 @@
|
|||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${userName}.extraGroups = [ "libvirtd" ];
|
users.users.${userName}.extraGroups = ["libvirtd"];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
virt-manager
|
virt-manager
|
||||||
@@ -34,5 +31,4 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user