mirror of
https://github.com/nmasur/dotfiles
synced 2024-10-18 19:39:03 +00:00
Compare commits
5 Commits
67af160088
...
30fe7c2d18
Author | SHA1 | Date | |
---|---|---|---|
|
30fe7c2d18 | ||
|
08716d1c98 | ||
|
60b68785a9 | ||
|
c360460d80 | ||
|
b1b5e77f47 |
@ -10,6 +10,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
specialArgs = { };
|
specialArgs = { };
|
||||||
modules = [
|
modules = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./disks.nix
|
||||||
../../modules/common
|
../../modules/common
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
(removeAttrs globals [ "mail.server" ])
|
(removeAttrs globals [ "mail.server" ])
|
||||||
@ -17,7 +18,6 @@ nixpkgs.lib.nixosSystem {
|
|||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
{
|
{
|
||||||
disko.devices = import ./disks.nix;
|
|
||||||
server = true;
|
server = true;
|
||||||
gui.enable = false;
|
gui.enable = false;
|
||||||
theme = { colors = (import ../../colorscheme/gruvbox).dark; };
|
theme = { colors = (import ../../colorscheme/gruvbox).dark; };
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{ ... }: {
|
||||||
|
disko.enableConfig = false;
|
||||||
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
boot = {
|
boot = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
@ -18,6 +20,7 @@
|
|||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
|
extraArgs = [ "-n boot" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -31,6 +34,7 @@
|
|||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
|
extraArgs = [ "-L nixos" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -98,14 +102,14 @@
|
|||||||
rootFsOptions = {
|
rootFsOptions = {
|
||||||
compression = "on"; # lz4 by default
|
compression = "on"; # lz4 by default
|
||||||
"com.sun:auto-snapshot" = "false";
|
"com.sun:auto-snapshot" = "false";
|
||||||
ashift = 12;
|
ashift = "12";
|
||||||
};
|
};
|
||||||
# mountpoint = "/";
|
# mountpoint = "/";
|
||||||
|
|
||||||
datasets = {
|
datasets = {
|
||||||
media = {
|
media = {
|
||||||
zfs_type = "filesystem";
|
zfs_type = "filesystem";
|
||||||
mountpoint = "none";
|
mountpoint = "/media";
|
||||||
options."com.sun:auto-snapshot" = "false";
|
options."com.sun:auto-snapshot" = "false";
|
||||||
};
|
};
|
||||||
# "media/movies" = {
|
# "media/movies" = {
|
||||||
@ -164,4 +168,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user