mirror of
https://github.com/gburd/nix-config.git
synced 2024-07-12 03:57:21 +00:00
fixes
This commit is contained in:
parent
825ce66d15
commit
24a97b7d23
4
NOTES
4
NOTES
|
@ -80,7 +80,8 @@ swapDevices = [ { device = "/dev/disk/by-label/swap/swapfile"; } ];
|
||||||
nixos-rebulid switch
|
nixos-rebulid switch
|
||||||
|
|
||||||
export NIX_CONFIG="experimental-features = nix-command flakes"
|
export NIX_CONFIG="experimental-features = nix-command flakes"
|
||||||
nix-env -iA nixos.pinentry nixos.git
|
nix-env -iA nixos.pinentry nixos.git nixos.direnv
|
||||||
|
eval "$(direnv hook bash)"
|
||||||
echo pinentry-program $(which pinentry) >> ~/.gnupg/gpg-agent.conf
|
echo pinentry-program $(which pinentry) >> ~/.gnupg/gpg-agent.conf
|
||||||
git clone https://github.com/gburd/nix-config.git
|
git clone https://github.com/gburd/nix-config.git
|
||||||
cd nix-config
|
cd nix-config
|
||||||
|
@ -98,6 +99,7 @@ home-manager switch --flake .#username@hostname
|
||||||
sudo nixos-rebuild switch --flake .#my-hostname
|
sudo nixos-rebuild switch --flake .#my-hostname
|
||||||
clear; sudo nixos-rebuild dry-activate --flake .#${hostname}
|
clear; sudo nixos-rebuild dry-activate --flake .#${hostname}
|
||||||
sudo nix --extra-experimental-features "flakes nix-command" run github:nix-community/disko -- --mode disko nixos/${hostname}/disks.nix --arg disks '[ "/dev/nvme0n1" ]' --arg config.networking.hostName ${hostname}
|
sudo nix --extra-experimental-features "flakes nix-command" run github:nix-community/disko -- --mode disko nixos/${hostname}/disks.nix --arg disks '[ "/dev/nvme0n1" ]' --arg config.networking.hostName ${hostname}
|
||||||
|
sudo nix run github:nix-community/disko -- --mode disko nixos/${hostname}/disks.nix
|
||||||
|
|
||||||
-------
|
-------
|
||||||
services.pcscd.enable = true;
|
services.pcscd.enable = true;
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{ config, disk ? "/dev/nvme0n1", ... }:
|
{ disk ? "/dev/nvme0n1", ... }: {
|
||||||
let
|
|
||||||
hostname = config.networking.hostName;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
nvme = {
|
nvme = {
|
||||||
|
@ -34,23 +30,23 @@ in
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = [ "-f" ];
|
extraArgs = [ "-f" ];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"/root" = {
|
"root" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
mountOptions = [ "compress=zstd" ];
|
mountOptions = [ "compress=zstd" ];
|
||||||
};
|
};
|
||||||
"/home" = {
|
"home" = {
|
||||||
mountpoint = "/home";
|
mountpoint = "/home";
|
||||||
mountOptions = [ "compress=zstd" ];
|
mountOptions = [ "compress=zstd" ];
|
||||||
};
|
};
|
||||||
"/nix" = {
|
"nix" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"/persist" = {
|
"persist" = {
|
||||||
mountpoint = "/persist";
|
mountpoint = "/persist";
|
||||||
mountOptions = [ "compress=zstd" ];
|
mountOptions = [ "compress=zstd" ];
|
||||||
};
|
};
|
||||||
"/var/logs" = {
|
"logs" = {
|
||||||
mountpoint = "/var/logs";
|
mountpoint = "/var/logs";
|
||||||
mountOptions = [ "compress=zstd" "noatime" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue