try this home manager config
This commit is contained in:
parent
1e4ea24f66
commit
f7414548ec
3 changed files with 40 additions and 6 deletions
14
flake.nix
14
flake.nix
|
|
@ -92,15 +92,19 @@
|
||||||
modules = [ ./hosts/nixos/${configName}/configuration.nix ];
|
modules = [ ./hosts/nixos/${configName}/configuration.nix ];
|
||||||
};
|
};
|
||||||
nixosConfigNames = builtins.attrNames (builtins.readDir ./hosts/nixos);
|
nixosConfigNames = builtins.attrNames (builtins.readDir ./hosts/nixos);
|
||||||
|
makeNixOnDroidConfig =
|
||||||
|
configName:
|
||||||
|
nix-on-droid.lib.nixOnDroidConfiguration {
|
||||||
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
|
pkgs = import nixpkgs { system = "aarch64-linux"; };
|
||||||
|
modules = [ ./hosts/nixOnDroidHosts/${configName}/configuration.nix ];
|
||||||
|
};
|
||||||
|
nixOnDroidConfigNames = builtins.attrNames (builtins.readDir ./hosts/nixOnDroidHosts);
|
||||||
treefmtEval = forAllSystems (system: treefmt-nix.lib.evalModule (makePkgs system) ./treefmt.nix);
|
treefmtEval = forAllSystems (system: treefmt-nix.lib.evalModule (makePkgs system) ./treefmt.nix);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosConfigNames makeNixosConfig;
|
nixosConfigurations = nixpkgs.lib.genAttrs nixosConfigNames makeNixosConfig;
|
||||||
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
nixOnDroidConfigurations = nixpkgs.lib.genAttrs nixOnDroidConfigNames makeNixOnDroidConfig;
|
||||||
extraSpecialArgs = { inherit inputs outputs; };
|
|
||||||
pkgs = import nixpkgs { system = "aarch64-linux"; };
|
|
||||||
modules = [ ./hosts/nixOnDroidHosts/atreus/configuration.nix ];
|
|
||||||
};
|
|
||||||
darwinConfigurations.prometheus = nix-darwin.lib.darwinSystem {
|
darwinConfigurations.prometheus = nix-darwin.lib.darwinSystem {
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
modules = [ ./hosts/darwinHosts/prometheus/configuration.nix ];
|
modules = [ ./hosts/darwinHosts/prometheus/configuration.nix ];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
@ -12,6 +13,17 @@
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Configure home-manager
|
||||||
|
home-manager = {
|
||||||
|
backupFileExtension = "hm-bak";
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
# Add your home-manager config here
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
build.activation.sshd = ''
|
build.activation.sshd = ''
|
||||||
if [ ! -e /etc/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -e /etc/ssh/ssh_host_ed25519_key ]; then
|
||||||
$VERBOSE_ECHO "Generating host keys..."
|
$VERBOSE_ECHO "Generating host keys..."
|
||||||
|
|
@ -40,6 +52,9 @@
|
||||||
openssh
|
openssh
|
||||||
just
|
just
|
||||||
nh
|
nh
|
||||||
|
# agenix tools
|
||||||
|
inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.agenix
|
||||||
|
age
|
||||||
(pkgs.writeShellScriptBin "lg-rerouting" ''
|
(pkgs.writeShellScriptBin "lg-rerouting" ''
|
||||||
${pkgs.lazygit}/bin/lazygit --path /storage/emulated/0/Documents/rerouting
|
${pkgs.lazygit}/bin/lazygit --path /storage/emulated/0/Documents/rerouting
|
||||||
'')
|
'')
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,29 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
user.userName = "osbm";
|
user.userName = "osbm";
|
||||||
|
|
||||||
# Read the changelog before changing this value
|
# Read the changelog before changing this value
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "24.05";
|
||||||
# Set up nix for flakes
|
# Set up nix for flakes
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Configure home-manager
|
||||||
|
home-manager = {
|
||||||
|
backupFileExtension = "hm-bak";
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
# Add your home-manager config here
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
build.activation.sshd = ''
|
build.activation.sshd = ''
|
||||||
if [ ! -e /etc/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -e /etc/ssh/ssh_host_ed25519_key ]; then
|
||||||
$VERBOSE_ECHO "Generating host keys..."
|
$VERBOSE_ECHO "Generating host keys..."
|
||||||
|
|
@ -40,6 +52,9 @@
|
||||||
openssh
|
openssh
|
||||||
just
|
just
|
||||||
nh
|
nh
|
||||||
|
# agenix tools
|
||||||
|
inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.agenix
|
||||||
|
age
|
||||||
(pkgs.writeShellScriptBin "lg-rerouting" ''
|
(pkgs.writeShellScriptBin "lg-rerouting" ''
|
||||||
${pkgs.lazygit}/bin/lazygit --path /storage/emulated/0/Documents/rerouting
|
${pkgs.lazygit}/bin/lazygit --path /storage/emulated/0/Documents/rerouting
|
||||||
'')
|
'')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue