fixed formatting
Some checks failed
Ansible Lint Check / check-ansible (push) Successful in 5s
Nix Format Check / check-format (push) Successful in 1m14s
Python Lint Check / check-python (push) Failing after 6s

This commit is contained in:
2025-09-23 13:35:37 +00:00
parent 54fc080ef2
commit c659c599f4
5 changed files with 71 additions and 44 deletions

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
programs.bash = { programs.bash = {
@@ -8,7 +13,10 @@
# History configuration # History configuration
historySize = 1000; historySize = 1000;
historyFileSize = 2000; historyFileSize = 2000;
historyControl = [ "ignoredups" "ignorespace" ]; historyControl = [
"ignoredups"
"ignorespace"
];
# Bash options and extra configuration # Bash options and extra configuration
bashrcExtra = '' bashrcExtra = ''
@@ -120,7 +128,8 @@
"docker-compose" = "docker compose"; "docker-compose" = "docker compose";
# Modern tools aliases # Modern tools aliases
"l" = "eza --header --long --git --group-directories-first --group --icons --color=always --sort=name --hyperlink -o --no-permissions"; "l" =
"eza --header --long --git --group-directories-first --group --icons --color=always --sort=name --hyperlink -o --no-permissions";
"ll" = "l"; "ll" = "l";
"la" = "l -a"; "la" = "l -a";
"cat" = "bat"; "cat" = "bat";
@@ -139,8 +148,10 @@
"dcps" = "docker compose ps"; "dcps" = "docker compose ps";
"dcpr" = "dcp && dcd && dcu -d && dcl -f"; "dcpr" = "dcp && dcd && dcu -d && dcl -f";
"dcr" = "dcd && dcu -d && dcl -f"; "dcr" = "dcd && dcu -d && dcl -f";
"ddpul" = "docker compose down && docker compose pull && docker compose up -d && docker compose logs -f"; "ddpul" =
"docker-nuke" = "docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker system prune --all --volumes --force && docker volume prune --force"; "docker compose down && docker compose pull && docker compose up -d && docker compose logs -f";
"docker-nuke" =
"docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker system prune --all --volumes --force && docker volume prune --force";
# Git aliases # Git aliases
"g" = "git"; "g" = "git";
@@ -267,5 +278,4 @@
]; ];
}; };
} }

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
programs.git = { programs.git = {

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
programs.starship = { programs.starship = {

View File

@@ -18,28 +18,36 @@
opnix, opnix,
}: }:
let let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ]; supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = system: import nixpkgs { pkgsFor =
inherit system; system:
config.allowUnfree = true; import nixpkgs {
}; inherit system;
config.allowUnfree = true;
};
in in
{ {
homeConfigurations = let homeConfigurations =
mkHomeConfig = system: hostname: isServer: let
home-manager.lib.homeManagerConfiguration { mkHomeConfig =
pkgs = pkgsFor system; system: hostname: isServer:
modules = [ ./home.nix ]; home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = {
pkgs = pkgsFor system; pkgs = pkgsFor system;
inherit opnix isServer hostname; modules = [ ./home.nix ];
extraSpecialArgs = {
pkgs = pkgsFor system;
inherit opnix isServer hostname;
};
}; };
}; in
in { {
"mennos-vps" = mkHomeConfig "aarch64-linux" "mennos-vps" true; "mennos-vps" = mkHomeConfig "aarch64-linux" "mennos-vps" true;
"mennos-desktop" = mkHomeConfig "x86_64-linux" "mennos-desktop" false; "mennos-desktop" = mkHomeConfig "x86_64-linux" "mennos-desktop" false;
"mennos-laptop" = mkHomeConfig "x86_64-linux" "mennos-laptop" false; "mennos-laptop" = mkHomeConfig "x86_64-linux" "mennos-laptop" false;
}; };
}; };
} }

View File

@@ -13,24 +13,23 @@
allowUnfreePredicate = pkg: true; allowUnfreePredicate = pkg: true;
}; };
imports = imports = [
[ opnix.homeManagerModules.default
opnix.homeManagerModules.default ./config/default.nix
./config/default.nix ./packages/common/default.nix
./packages/common/default.nix ]
] ++ (
++ ( if isServer then
if isServer then [
[ ./packages/server/default.nix
./packages/server/default.nix ./server/default.nix
./server/default.nix ]
] else
else [
[ ./packages/workstation/default.nix
./packages/workstation/default.nix ./workstation/default.nix
./workstation/default.nix ]
] );
);
home = { home = {
username = "menno"; username = "menno";