Compare commits
2 Commits
3298aa6f36
...
fcf2300732
| Author | SHA1 | Date | |
|---|---|---|---|
|
fcf2300732
|
|||
|
01ab4b632b
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -32,4 +32,4 @@ go.work.sum
|
||||
.vscode/
|
||||
|
||||
# Nix results
|
||||
result/
|
||||
result
|
||||
20
flake.nix
20
flake.nix
@@ -21,14 +21,15 @@
|
||||
packages = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgsFor.${system};
|
||||
in
|
||||
{
|
||||
default = pkgs.buildGoModule {
|
||||
clientPackage = pkgs.buildGoModule {
|
||||
pname = "client";
|
||||
inherit version;
|
||||
src = ./client;
|
||||
vendorHash = null;
|
||||
};
|
||||
in
|
||||
{
|
||||
default = clientPackage;
|
||||
boot-env-iso = nixos-generators.nixosGenerate {
|
||||
inherit system;
|
||||
format = "iso";
|
||||
@@ -39,18 +40,22 @@
|
||||
(modulesPath + "/profiles/base.nix")
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
# Disable unneeded features
|
||||
## boot.loader.grub.enable = true;
|
||||
## boot.loader.grub.device = "nodev";
|
||||
##boot.loader.grub.enable = true; # Not needed as iso-image.nix in modulesPath defines these and cause conflict
|
||||
##boot.loader.grub.device = "nodev";
|
||||
documentation.enable = false;
|
||||
fonts.fontconfig.enable = false;
|
||||
services.udisks2.enable = false;
|
||||
|
||||
networking.firewall.enable = false; # Technically we COULD use the firewall, but given that this is a network-dependent, one-time-use service, it would cause more issues
|
||||
|
||||
services.getty.autologinUser = "root";
|
||||
|
||||
environment.systemPackages = [ clientPackage ];
|
||||
environment.etc."profile.local".text = ''
|
||||
# Minimal shell prompt
|
||||
echo "It works!"
|
||||
client
|
||||
'';
|
||||
|
||||
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
|
||||
@@ -70,6 +75,7 @@
|
||||
pkgs.bashInteractive
|
||||
pkgs.go
|
||||
pkgs.delve
|
||||
pkgs.qemu_kvm
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user