···11{
22- name = "Asgard";
33-42 description = ''
53 This configuration is the second version of all my systems, reworked from scratch with simplicity in mind.
64
+23-2
justfile
···11hostname := "$HOSTNAME"
2233+# default action: list actions
34default:
45 @just --list
5666-rebuild hostname=hostname:
77+# Rebuild the system
88+switch hostname=hostname:
79 #!/usr/bin/env sh
810 if [[ "$OSTYPE" == "darwin"* ]]; then \
911 darwin-rebuild switch --flake .#{{ hostname }}; \
···1113 sudo nixos-rebuild switch --flake .#{{ hostname }}; \
1214 fi;
13151616+# Build a new configuration
1717+boot hostname=hostname:
1818+ #!/usr/bin/env sh
1919+ if [[ "$OSTYPE" == "darwin"* ]]; then \
2020+ @echo "This is not possible to do it on MacOS."
2121+ else \
2222+ sudo nixos-rebuild switch --flake .#{{ hostname }}; \
2323+ fi;
2424+2525+# Format code
2626+format:
2727+ nix fmt
2828+2929+# Update dependencies
3030+update:
3131+ nix flake update
3232+3333+# Cleanup all unused packages and generations
1434clean:
1535 nix-store --optimize
1636 nix-collect-garbage -d
1737 sudo nix-collect-garbage -d
18381919-nix-size:
3939+# Print size of the nix store
4040+size:
2041 du -sh /nix/store
+1-1
machines/darwin/njord/default.nix
···4242 };
43434444 # Common system configurations
4545- gems.system.garbageCollector.enable = true;
4545+ asgard.system.garbageCollector.enable = true;
46464747 # The platform the configuration will be used on.
4848 nixpkgs.hostPlatform = "aarch64-darwin";
+2-2
machines/nixos/andhrimnir/default.nix
···3838 services.printing.enable = false;
39394040 # Common system configurations
4141- gems.system.garbageCollector.enable= true;
4242- gems.system.autoUpdate.enable = false;
4141+ asgard.system.garbageCollector.enable= true;
4242+ asgard.system.autoUpdate.enable = false;
43434444 # This value determines the NixOS release from which the default
4545 # settings for stateful data, like file locations and database versions
+2-2
machines/nixos/elli/default.nix
···3535 services.printing.enable = false;
36363737 # Common system configurations
3838- gems.system.garbageCollector.enable= true;
3939- gems.system.autoUpdate.enable = false;
3838+ asgard.system.garbageCollector.enable= true;
3939+ asgard.system.autoUpdate.enable = false;
40404141 # This value determines the NixOS release from which the default
4242 # settings for stateful data, like file locations and database versions
···11{ config, pkgs, lib, ... }:
22let
33- cfg = config.gems.programs.steam;
33+ cfg = config.asgard.programs.steam;
44in
55{
66- options.gems.programs.steam = {
66+ options.asgard.programs.steam = {
77 enable = lib.mkEnableOption ''
88 Enable an opiniated configuration for Steam.
99 This is a basic steam configuration at the moment, this will be change in the future for optimization and console like experience.