This commit is contained in:
parent
1a25b198ef
commit
781ce2d5e9
24 changed files with 610 additions and 505 deletions
|
@ -1,11 +1,15 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{ imports = [ ./hardware-configuration.nix ];
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
trusted-users = [ "@wheel" ];
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
trusted-users = ["@wheel"];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
gc = {
|
||||
|
@ -17,9 +21,9 @@
|
|||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
networking= {
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
firewall.allowedTCPPorts = [22];
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
|
@ -104,5 +108,4 @@
|
|||
};
|
||||
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{ lib, system, ... }:
|
||||
|
||||
{
|
||||
lib,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
# use latest kernel
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];
|
||||
supportedFilesystems = ["ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs"];
|
||||
growPartition = true;
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelParams = lib.mkForce [ ];
|
||||
kernelModules = ["kvm-intel"];
|
||||
kernelParams = lib.mkForce [];
|
||||
|
||||
loader = {
|
||||
grub = {
|
||||
|
@ -20,8 +22,8 @@
|
|||
};
|
||||
|
||||
initrd = {
|
||||
availableKernelModules = [ "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi" ];
|
||||
kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
|
||||
availableKernelModules = ["9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi"];
|
||||
kernelModules = ["virtio_balloon" "virtio_console" "virtio_rng"];
|
||||
};
|
||||
|
||||
tmp.cleanOnBoot = true;
|
||||
|
@ -45,7 +47,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
services.fstrim = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home = {
|
||||
username = "tbarnouin";
|
||||
stateVersion = "24.11";
|
||||
|
@ -75,17 +78,16 @@
|
|||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins =
|
||||
[
|
||||
"git"
|
||||
"terraform"
|
||||
"sudo"
|
||||
"docker"
|
||||
"pip"
|
||||
"python"
|
||||
"pyenv"
|
||||
"pipenv"
|
||||
];
|
||||
plugins = [
|
||||
"git"
|
||||
"terraform"
|
||||
"sudo"
|
||||
"docker"
|
||||
"pip"
|
||||
"python"
|
||||
"pyenv"
|
||||
"pipenv"
|
||||
];
|
||||
theme = "bira";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{ imports = [ ./hardware-configuration.nix ];
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
trusted-users = [ "@wheel" ];
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
trusted-users = ["@wheel"];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
gc = {
|
||||
|
@ -17,9 +21,9 @@
|
|||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
networking= {
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
firewall.allowedTCPPorts = [22];
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
|
@ -104,5 +108,4 @@
|
|||
};
|
||||
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{ lib, system, ... }:
|
||||
|
||||
{
|
||||
lib,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
# use latest kernel
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];
|
||||
supportedFilesystems = ["ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs"];
|
||||
growPartition = true;
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelParams = lib.mkForce [ ];
|
||||
kernelModules = ["kvm-intel"];
|
||||
kernelParams = lib.mkForce [];
|
||||
|
||||
loader = {
|
||||
grub = {
|
||||
|
@ -20,8 +22,8 @@
|
|||
};
|
||||
|
||||
initrd = {
|
||||
availableKernelModules = [ "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi" ];
|
||||
kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
|
||||
availableKernelModules = ["9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi"];
|
||||
kernelModules = ["virtio_balloon" "virtio_console" "virtio_rng"];
|
||||
};
|
||||
|
||||
tmp.cleanOnBoot = true;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home = {
|
||||
username = "tbarnouin";
|
||||
stateVersion = "24.11";
|
||||
|
@ -75,17 +78,16 @@
|
|||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins =
|
||||
[
|
||||
"git"
|
||||
"terraform"
|
||||
"sudo"
|
||||
"docker"
|
||||
"pip"
|
||||
"python"
|
||||
"pyenv"
|
||||
"pipenv"
|
||||
];
|
||||
plugins = [
|
||||
"git"
|
||||
"terraform"
|
||||
"sudo"
|
||||
"docker"
|
||||
"pip"
|
||||
"python"
|
||||
"pyenv"
|
||||
"pipenv"
|
||||
];
|
||||
theme = "bira";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue