Set up building an ISO from the config.
This commit is contained in:
parent
df3528d62a
commit
50811aad77
@ -14,6 +14,8 @@
|
|||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.settings.trusted-users = [ "@wheel" ];
|
nix.settings.trusted-users = [ "@wheel" ];
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_6_11;
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.talexander = {
|
users.users.talexander = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Build ISO image
|
||||||
|
# doas nix run github:nix-community/nixos-generators -- --flake .#odo --format iso
|
||||||
{
|
{
|
||||||
description = "My system configuration";
|
description = "My system configuration";
|
||||||
|
|
||||||
@ -53,12 +55,7 @@
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
odo = nixpkgs.lib.nixosSystem rec {
|
||||||
{
|
|
||||||
# doas nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#vms.odo
|
|
||||||
# ./result/bin/run-nixos-vim
|
|
||||||
vms.odo = odoqemu.config.system.build.vm;
|
|
||||||
nixosConfigurations.odo = nixpkgs.lib.nixosSystem rec {
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
pkgs-b93b4e9b5 = import nixpkgs-b93b4e9b5 {
|
pkgs-b93b4e9b5 = import nixpkgs-b93b4e9b5 {
|
||||||
@ -80,6 +77,13 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# doas nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#vms.odo
|
||||||
|
# ./result/bin/run-nixos-vim
|
||||||
|
vms.odo = odoqemu.config.system.build.vm;
|
||||||
|
odoiso = odo.config.system.build.isoImage;
|
||||||
|
nixosConfigurations.odo = odo;
|
||||||
nixosConfigurations.odovm = nixpkgs.lib.nixosSystem rec {
|
nixosConfigurations.odovm = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
@ -46,7 +46,7 @@ in
|
|||||||
alacritty
|
alacritty
|
||||||
firefox
|
firefox
|
||||||
];
|
];
|
||||||
hardware.opengl.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user