again random stuff

This commit is contained in:
Ranomier 2025-01-13 03:16:43 +01:00
parent 7f4b1ae8e1
commit e7de53b2fe
6 changed files with 56 additions and 35 deletions

View file

@ -38,6 +38,7 @@
nixpkgs-unstable, nixpkgs-unstable,
nix-flatpak, nix-flatpak,
home-manager, home-manager,
nixos-generators,
... ...
} @ inputs: let } @ inputs: let
# Supported systems for your flake packages, shell, etc. # Supported systems for your flake packages, shell, etc.
@ -70,7 +71,7 @@
overlays = import ./overlays {inherit inputs;}; overlays = import ./overlays {inherit inputs;};
# Reusable nixos modules you might want to export # Reusable nixos modules you might want to export
# These are usually stuff you would upstream into nixpkgs # These are usually stuff you would upstream into nixpkgs
nixosModules = import ./modules/nixos; #nixosModules = import ./modules/nixos;
# Reusable home-manager modules you might want to export # Reusable home-manager modules you might want to export
# These are usually stuff you would upstream into home-manager # These are usually stuff you would upstream into home-manager
homeManagerModules = import ./modules/home-manager; homeManagerModules = import ./modules/home-manager;
@ -78,8 +79,7 @@
# NixOS configuration entrypoint # NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname' # Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = nixosConfigurations =
host_helper "crocoite" # // (host_helper example); host_helper "crocoite"; # // (host_helper example);
// host_helper "factorio";
## Standalone home-manager configuration entrypoint ## Standalone home-manager configuration entrypoint
## Available through 'home-manager --flake .#your-username@your-hostname' ## Available through 'home-manager --flake .#your-username@your-hostname'
@ -94,5 +94,33 @@
# ]; # ];
# }; # };
#}; #};
packages.x86_64-linux = {
factorio = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [
# you can include your own nixos configuration here, i.e.
#./hosts/factorio/factorio.nix
];
customFormats = {
"myFormat" = {
lib,
modulesPath,
...
}: {
imports = [
"${toString modulesPath}/virtualisation/proxmox-lxc.nix"
];
boot.loader.grub.enable = lib.mkForce false;
boot.loader.systemd-boot.enable = lib.mkForce false;
formatAttr = "tarball";
fileExtension = "asd.tar.xz";
};
};
format = "myFormat";
#format = "vmware";
};
};
}; };
} }

View file

@ -72,6 +72,7 @@
../../modules/software ../../modules/software
../../modules/software/browser ../../modules/software/browser
../../modules/software/nix-helper ../../modules/software/nix-helper
../../modules/software/shells
../../modules/wm_and_de ../../modules/wm_and_de

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
pkgs,
lib,
...
}: {
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
@ -47,9 +51,9 @@
../../modules/locale.nix ../../modules/locale.nix
#../../modules/game/server/factorio/factorio.nix #../../modules/game/server/factorio/factorio.nix
<nixpkgs/nixos/modules/profiles/perlless.nix> #<nixpkgs/nixos/modules/profiles/perlless.nix>
<nixpkgs/nixos/modules/profiles/headless.nix> #<nixpkgs/nixos/modules/profiles/headless.nix>
<nixpkgs/nixos/modules/profiles/minimal.nix> #<nixpkgs/nixos/modules/profiles/minimal.nix>
{ {
programs.command-not-found.enable = false; programs.command-not-found.enable = false;
@ -61,10 +65,16 @@
}; };
documentation.man.enable = false; documentation.man.enable = false;
documentation.nixos.enable = false; documentation.nixos.enable = false;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
} }
]; ];
disabledModules = [ #disabledModules = [
<nixpkgs/nixos/modules/profiles/all-hardware.nix> # <nixpkgs/nixos/modules/profiles/all-hardware.nix>
<nixpkgs/nixos/modules/profiles/base.nix> # <nixpkgs/nixos/modules/profiles/base.nix>
]; #];
} }

View file

@ -8,30 +8,9 @@
modulesPath, modulesPath,
... ...
}: { }: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"]; boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems."/" = { # maybe instruct nix to just use available swap partition
device = "/dev/disk/by-uuid/a6c22dab-a82a-4109-a8d0-b7ed99d56bc7";
fsType = "ext4";
};
swapDevices = [
{device = "/dev/disk/by-uuid/ca4eedce-6e52-4593-a188-a48e54074d14";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }

View file

@ -1,3 +1,6 @@
{...}: { {...}: {
services.speechd.enable = true; services = {
speechd.enable = true;
orca.enable = true;
};
} }

View file

@ -1,7 +1,7 @@
{...}: { {...}: {
imports = [ imports = [
./hyprland.nix ./hyprland.nix
./qtile.nix #./qtile.nix
./components/dbus.nix ./components/dbus.nix
]; ];
} }