again random stuff
This commit is contained in:
parent
7f4b1ae8e1
commit
e7de53b2fe
6 changed files with 56 additions and 35 deletions
34
flake.nix
34
flake.nix
|
@ -38,6 +38,7 @@
|
|||
nixpkgs-unstable,
|
||||
nix-flatpak,
|
||||
home-manager,
|
||||
nixos-generators,
|
||||
...
|
||||
} @ inputs: let
|
||||
# Supported systems for your flake packages, shell, etc.
|
||||
|
@ -70,7 +71,7 @@
|
|||
overlays = import ./overlays {inherit inputs;};
|
||||
# Reusable nixos modules you might want to export
|
||||
# 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
|
||||
# These are usually stuff you would upstream into home-manager
|
||||
homeManagerModules = import ./modules/home-manager;
|
||||
|
@ -78,8 +79,7 @@
|
|||
# NixOS configuration entrypoint
|
||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||
nixosConfigurations =
|
||||
host_helper "crocoite" # // (host_helper example);
|
||||
// host_helper "factorio";
|
||||
host_helper "crocoite"; # // (host_helper example);
|
||||
|
||||
## Standalone home-manager configuration entrypoint
|
||||
## 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
../../modules/software
|
||||
../../modules/software/browser
|
||||
../../modules/software/nix-helper
|
||||
../../modules/software/shells
|
||||
|
||||
../../modules/wm_and_de
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
@ -47,9 +51,9 @@
|
|||
../../modules/locale.nix
|
||||
#../../modules/game/server/factorio/factorio.nix
|
||||
|
||||
<nixpkgs/nixos/modules/profiles/perlless.nix>
|
||||
<nixpkgs/nixos/modules/profiles/headless.nix>
|
||||
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||
#<nixpkgs/nixos/modules/profiles/perlless.nix>
|
||||
#<nixpkgs/nixos/modules/profiles/headless.nix>
|
||||
#<nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||
|
||||
{
|
||||
programs.command-not-found.enable = false;
|
||||
|
@ -61,10 +65,16 @@
|
|||
};
|
||||
documentation.man.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 = [
|
||||
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
|
||||
<nixpkgs/nixos/modules/profiles/base.nix>
|
||||
];
|
||||
#disabledModules = [
|
||||
# <nixpkgs/nixos/modules/profiles/all-hardware.nix>
|
||||
# <nixpkgs/nixos/modules/profiles/base.nix>
|
||||
#];
|
||||
}
|
||||
|
|
|
@ -8,30 +8,9 @@
|
|||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
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;
|
||||
# maybe instruct nix to just use available swap partition
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
{...}: {
|
||||
services.speechd.enable = true;
|
||||
services = {
|
||||
speechd.enable = true;
|
||||
orca.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./qtile.nix
|
||||
#./qtile.nix
|
||||
./components/dbus.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue