Changing file structure to prepare for ISO

This commit is contained in:
Lyes Saadi 2024-05-05 19:25:12 +02:00
parent 635a37bac0
commit 4122a52949
No known key found for this signature in database
GPG key ID: 17418538BAA17767
12 changed files with 37 additions and 22 deletions

View file

@ -10,15 +10,27 @@
};
outputs = { self, nixpkgs, nixos-hardware, nix-flatpak, ... }@attrs: {
nixosConfigurations.lyes-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./configuration/configuration.nix
nix-flatpak.nixosModules.nix-flatpak
./hardware/lyes-pc/configuration.nix
nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
];
nixosConfigurations = {
lyes-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./general/configuration.nix
nix-flatpak.nixosModules.nix-flatpak
./specific/lyes-pc/configuration.nix
nixos-hardware.nixosModules.lenovo-thinkpad-x1-extreme-gen4
];
};
# iso = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = attrs;
# modules = [
# ./general/configuration.nix
# nix-flatpak.nixosModules.nix-flatpak
# ./specific/iso/configuration.nix
# ];
# };
};
};
}

View file

@ -1,14 +1,8 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
{
# OS Configuration
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.extraEntries = {
"fedora.conf" = ''
title Fedora
efi /EFI/fedora/grubx64.efi
'';
};
boot.loader.systemd-boot.configurationLimit = 10;
boot.loader.efi.canTouchEfiVariables = true;
boot.plymouth.enable = true;
@ -16,12 +10,6 @@
boot.supportedFilesystems = [ "ntfs" ];
fileSystems = {
"/".options = [ "compress=zstd:1" ];
"/home".options = [ "compress=zstd:1" ];
"/nix".options = [ "compress=zstd:1" "noatime" ];
};
zramSwap.enable = true;
# Firmware

View file

@ -74,6 +74,21 @@
# };
# };
# Boot
boot.loader.systemd-boot.extraEntries = {
"fedora.conf" = ''
title Fedora
efi /EFI/fedora/grubx64.efi
'';
};
# Filesystem
fileSystems = {
"/".options = [ "compress=zstd:1" ];
"/home".options = [ "compress=zstd:1" ];
"/nix".options = [ "compress=zstd:1" "noatime" ];
};
# Networking
networking.hostName = "lyes-pc";