This commit is contained in:
parent
2b624e4db3
commit
f9003db167
2 changed files with 47 additions and 38 deletions
71
flake.nix
71
flake.nix
|
@ -14,45 +14,46 @@
|
||||||
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
|
nix-minecraft.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# outputs = inputs: inputs.snowfall-lib.mkFlake {
|
outputs = inputs: inputs.snowfall-lib.mkFlake {
|
||||||
# inherit inputs;
|
inherit inputs;
|
||||||
# src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
# channels-config.allowUnfree = false;
|
channels-config.allowUnfree = false;
|
||||||
|
supportedSystems = inputs.snowfall-lib.inputs.flake-utils-plus.lib.defaultSystems ++ ["i686-linux"];
|
||||||
|
|
||||||
# nix.gc = {
|
nix.gc = {
|
||||||
# automatic = true;
|
automatic = true;
|
||||||
# options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
# };
|
|
||||||
# nix.optimise.automatic = true;
|
|
||||||
|
|
||||||
# # Modules for Host HyperC
|
|
||||||
# systems.hosts.HyperC.modules = with inputs; [
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# # Modules for Host voloxo
|
|
||||||
# systems.hosts.voloxo.modules = with inputs; [
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# # Modules for Host kb-games-01
|
|
||||||
# systems.hosts.kb-games-01.modules = with inputs; [
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# # Modules that get imported to every NixOS system
|
|
||||||
# systems.modules.nixos = with inputs; [
|
|
||||||
# lix-module.nixosModules.default
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
|
|
||||||
|
|
||||||
# };
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
|
||||||
nixosConfigurations."Rubtrm" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "i686-linux";
|
|
||||||
modules = [ ./systems/i686-linux/Rubtrm/default.nix ];
|
|
||||||
};
|
};
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
|
||||||
|
# Modules for Host HyperC
|
||||||
|
systems.hosts.HyperC.modules = with inputs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Modules for Host voloxo
|
||||||
|
systems.hosts.voloxo.modules = with inputs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Modules for Host kb-games-01
|
||||||
|
systems.hosts.kb-games-01.modules = with inputs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Modules that get imported to every NixOS system
|
||||||
|
systems.modules.nixos = with inputs; [
|
||||||
|
lix-module.nixosModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
|
# nixosConfigurations."Rubtrm" = nixpkgs.lib.nixosSystem {
|
||||||
|
# system = "i686-linux";
|
||||||
|
# modules = [ ./systems/i686-linux/Rubtrm/default.nix ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,17 @@
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Configure Nix
|
||||||
|
nix.settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
substituters = [
|
||||||
|
"https://cache.games01.kb-one.de"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cache.games01.kb-one.de:JF++7CgrasYciQeB5jlziqT5BTjaknEk9cMeh4lQf30="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
# Define on which hard drive you want to install Grub.
|
# Define on which hard drive you want to install Grub.
|
||||||
|
@ -78,9 +89,6 @@
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
||||||
# Configure Nix
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
||||||
# and migrated your data accordingly.
|
# and migrated your data accordingly.
|
||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||||
|
|
Loading…
Add table
Reference in a new issue