Skip to content

Commit

Permalink
feat: update to nixpkgs-23.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mokrinsky committed Jan 19, 2024
1 parent a22619b commit 4648318
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 111 deletions.
88 changes: 44 additions & 44 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 18 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@

inputs = {
# core inputs
nixpkgs.url = "nixpkgs/nixpkgs-23.05-darwin";
nixpkgs.url = "nixpkgs/nixpkgs-23.11-darwin";
nixpkgs-unstable.url = "github:nixos/nixpkgs";
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};

# NUR inputs
nur.url = "github:nix-community/NUR";
yumi = {
url = "github:mokrinsky/nix-packages";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
pre-commit-hooks.follows = "pre-commit-hooks";
};
};

# QoL inputs
Expand All @@ -42,15 +44,19 @@
};
sops = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs = {
nixpkgs-stable.follows = "nixpkgs";
nixpkgs.follows = "nixpkgs-unstable";
};
};

# Development inputs
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
# yumi-dev = {
# url = "path:/Users/yumi/git/nix-overlay";
Expand Down Expand Up @@ -123,6 +129,9 @@
noLambdaPatternNames = true;
noLambdaArg = true;
};
settings.typos = {
exclude = ".sops.yaml --exclude secrets/*";
};
};
};

Expand Down
10 changes: 6 additions & 4 deletions hosts/argolab/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
(modulesPath + "/profiles/qemu-guest.nix")
];

boot.initrd.availableKernelModules = ["ata_piix" "xhci_pci" "ahci" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
boot = {
initrd.availableKernelModules = ["ata_piix" "xhci_pci" "ahci" "sd_mod" "sr_mod"];
initrd.kernelModules = [];
kernelModules = [];
extraModulePackages = [];
};

fileSystems."/" = {
device = "/dev/disk/by-label/root";
Expand Down
3 changes: 3 additions & 0 deletions hosts/common/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{pkgs, ...}: {
nixpkgs.config = {
allowUnfree = true;
};
nix = {
package = pkgs.unstable.nixVersions.nix_2_15;

Expand Down
14 changes: 8 additions & 6 deletions hosts/nl/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
prefix = " network ";
};
in {
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot = {
loader.grub.enable = true;
loader.grub.device = "/dev/vda";

boot.kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = "1";
"net.ipv6.conf.default.forwarding" = "1";
"net.ipv4.ip_forward" = "1";
kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = "1";
"net.ipv6.conf.default.forwarding" = "1";
"net.ipv4.ip_forward" = "1";
};
};

time.timeZone = "Europe/Amsterdam";
Expand Down
10 changes: 6 additions & 4 deletions hosts/nl/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{lib, ...}: {
imports = [];

boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["tap"];
boot.extraModulePackages = [];
boot = {
initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
initrd.kernelModules = [];
kernelModules = ["tap"];
extraModulePackages = [];
};

fileSystems."/" = {
device = "/dev/disk/by-label/root";
Expand Down
14 changes: 8 additions & 6 deletions hosts/ru/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
prefix = " network ";
};
in {
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot = {
loader.grub.enable = true;
loader.grub.device = "/dev/vda";

boot.kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = "1";
"net.ipv6.conf.default.forwarding" = "1";
"net.ipv4.ip_forward" = "1";
kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = "1";
"net.ipv6.conf.default.forwarding" = "1";
"net.ipv4.ip_forward" = "1";
};
};

time.timeZone = "Europe/Moscow";
Expand Down
10 changes: 6 additions & 4 deletions hosts/ru/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{lib, ...}: {
imports = [];

boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["tap"];
boot.extraModulePackages = [];
boot = {
availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
initrd.kernelModules = [];
kernelModules = ["tap"];
extraModulePackages = [];
};

fileSystems."/" = {
device = "/dev/disk/by-label/root";
Expand Down
Loading

0 comments on commit 4648318

Please sign in to comment.