mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-13 00:16:24 +00:00
fixes
This commit is contained in:
parent
825ce66d15
commit
24a97b7d23
2 changed files with 9 additions and 11 deletions
4
NOTES
4
NOTES
|
@ -80,7 +80,8 @@ swapDevices = [ { device = "/dev/disk/by-label/swap/swapfile"; } ];
|
|||
nixos-rebulid switch
|
||||
|
||||
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
|
||||
git clone https://github.com/gburd/nix-config.git
|
||||
cd nix-config
|
||||
|
@ -98,6 +99,7 @@ home-manager switch --flake .#username@hostname
|
|||
sudo nixos-rebuild switch --flake .#my-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 run github:nix-community/disko -- --mode disko nixos/${hostname}/disks.nix
|
||||
|
||||
-------
|
||||
services.pcscd.enable = true;
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{ config, disk ? "/dev/nvme0n1", ... }:
|
||||
let
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
{ disk ? "/dev/nvme0n1", ... }: {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
nvme = {
|
||||
|
@ -34,23 +30,23 @@ in
|
|||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
"root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" ];
|
||||
};
|
||||
"/home" = {
|
||||
"home" = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = [ "compress=zstd" ];
|
||||
};
|
||||
"/nix" = {
|
||||
"nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"/persist" = {
|
||||
"persist" = {
|
||||
mountpoint = "/persist";
|
||||
mountOptions = [ "compress=zstd" ];
|
||||
};
|
||||
"/var/logs" = {
|
||||
"logs" = {
|
||||
mountpoint = "/var/logs";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue