task | formating
This commit is contained in:
parent
427ee38d7a
commit
651852986d
6 changed files with 64 additions and 45 deletions
|
|
@ -1,30 +1,34 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
];
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc"];
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/c871ca4a-fb86-4631-b3bd-105931c5f373";
|
device = "/dev/disk/by-uuid/c871ca4a-fb86-4631-b3bd-105931c5f373";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/55CA-7FD8";
|
device = "/dev/disk/by-uuid/55CA-7FD8";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ modulesPath, config, lib, pkgs, ... }: {
|
{
|
||||||
|
modulesPath,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
|
@ -6,12 +12,14 @@
|
||||||
];
|
];
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernelParams = [ "consoleblank=60" ];
|
kernelParams = ["consoleblank=60"];
|
||||||
loader = {
|
loader = {
|
||||||
timeout = 10;
|
timeout = 10;
|
||||||
/* systemd-boot = {
|
/*
|
||||||
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
}; */
|
};
|
||||||
|
*/
|
||||||
grub = {
|
grub = {
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
|
@ -28,7 +36,7 @@
|
||||||
theme = "breeze";
|
theme = "breeze";
|
||||||
};
|
};
|
||||||
kernel = {
|
kernel = {
|
||||||
sysctl = { "vm.swappiness" = 10;};
|
sysctl = {"vm.swappiness" = 10;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ modulesPath, config, lib, pkgs, ... }: {
|
{
|
||||||
|
modulesPath,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# Example to create a bios compatible gpt partition
|
# Example to create a bios compatible gpt partition
|
||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk.disk1 = {
|
||||||
device = lib.mkDefault "/dev/vda";
|
device = lib.mkDefault "/dev/vda";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# Example to create a bios compatible gpt partition
|
# Example to create a bios compatible gpt partition
|
||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk.disk1 = {
|
||||||
device = lib.mkDefault "/dev/sda";
|
device = lib.mkDefault "/dev/sda";
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,24 @@
|
||||||
inputs.disko.url = "github:nix-community/disko";
|
inputs.disko.url = "github:nix-community/disko";
|
||||||
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
|
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
outputs = { nixpkgs, disko, ... }:
|
outputs = {
|
||||||
{
|
nixpkgs,
|
||||||
nixosConfigurations.smaug = nixpkgs.lib.nixosSystem {
|
disko,
|
||||||
system = "x86_64-linux";
|
...
|
||||||
modules = [
|
}: {
|
||||||
disko.nixosModules.disko
|
nixosConfigurations.smaug = nixpkgs.lib.nixosSystem {
|
||||||
./configuration.nix
|
system = "x86_64-linux";
|
||||||
];
|
modules = [
|
||||||
};
|
disko.nixosModules.disko
|
||||||
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
|
./configuration.nix
|
||||||
system = "x86_64-linux";
|
];
|
||||||
modules = [
|
|
||||||
disko.nixosModules.disko
|
|
||||||
./configuration-vm.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
|
./configuration-vm.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue