mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switched to disko on game-laptop
This commit is contained in:
parent
ac963c344f
commit
e3e4a05def
4 changed files with 70 additions and 19 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -1,5 +1,25 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"disko": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"unstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1678067051,
|
||||||
|
"narHash": "sha256-0QN2lO6dp4OlEysqufuXEgW1QywANKCuF+6EsNXcZ7o=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "disko",
|
||||||
|
"rev": "cf705ee16161b29b0e18983ecd8df3cb50f66142",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "disko",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"fetch-rs": {
|
"fetch-rs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
|
@ -249,6 +269,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"disko": "disko",
|
||||||
"fetch-rs": "fetch-rs",
|
"fetch-rs": "fetch-rs",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
"master": "master",
|
"master": "master",
|
||||||
|
|
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -15,7 +15,10 @@
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
|
disko = {
|
||||||
|
url = "github:nix-community/disko";
|
||||||
|
inputs.nixpkgs.follows = "unstable";
|
||||||
|
};
|
||||||
#the-argus is awesome
|
#the-argus is awesome
|
||||||
spicetify-nix = {
|
spicetify-nix = {
|
||||||
url = "github:the-argus/spicetify-nix";
|
url = "github:the-argus/spicetify-nix";
|
||||||
|
|
@ -42,6 +45,7 @@
|
||||||
flake-utils,
|
flake-utils,
|
||||||
nvim-flake,
|
nvim-flake,
|
||||||
nixos-generators,
|
nixos-generators,
|
||||||
|
disko,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
{
|
{
|
||||||
|
|
@ -56,6 +60,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
(import ./modules inputs)
|
(import ./modules inputs)
|
||||||
(import ./systems/gerg-desktop inputs)
|
(import ./systems/gerg-desktop inputs)
|
||||||
{
|
{
|
||||||
|
|
@ -75,6 +80,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
(import ./modules inputs)
|
(import ./modules inputs)
|
||||||
(import ./systems/game-laptop inputs)
|
(import ./systems/game-laptop inputs)
|
||||||
];
|
];
|
||||||
|
|
@ -88,6 +94,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
(import ./modules inputs)
|
(import ./modules inputs)
|
||||||
(import ./systems/moms-laptop inputs)
|
(import ./systems/moms-laptop inputs)
|
||||||
];
|
];
|
||||||
|
|
@ -96,6 +103,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {inherit self;};
|
specialArgs = {inherit self;};
|
||||||
modules = [
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
(import ./systems/notbuntu inputs)
|
(import ./systems/notbuntu inputs)
|
||||||
(import ./modules/nix.nix inputs)
|
(import ./modules/nix.nix inputs)
|
||||||
(import ./modules/unfree.nix inputs)
|
(import ./modules/unfree.nix inputs)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ inputs: {
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./prime.nix inputs)
|
(import ./prime.nix inputs)
|
||||||
|
(import ./disko.nix inputs)
|
||||||
(import ./gaming.nix inputs)
|
(import ./gaming.nix inputs)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -75,22 +76,4 @@ inputs: {
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
};
|
};
|
||||||
fileSystems = {
|
|
||||||
"/" = {
|
|
||||||
device = "/dev/disk/by-uuid/0822f37a-e55b-4b56-aeae-b6f4a11306c3";
|
|
||||||
fsType = "ext4";
|
|
||||||
label = "nixos";
|
|
||||||
noCheck = false;
|
|
||||||
mountPoint = "/";
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
"/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/EA2C-E488";
|
|
||||||
fsType = "vfat";
|
|
||||||
label = "BOOT";
|
|
||||||
noCheck = false;
|
|
||||||
mountPoint = "/boot";
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
39
systems/game-laptop/disko.nix
Normal file
39
systems/game-laptop/disko.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
_: {
|
||||||
|
disko.devices = {
|
||||||
|
disk.nvme0n1 = {
|
||||||
|
device = "/dev/disk/by-id/nvme-WDC_PC_SN530_SDBPNPZ-512G-1006_21311N802456";
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "table";
|
||||||
|
format = "gpt";
|
||||||
|
partitions = [
|
||||||
|
{
|
||||||
|
type = "partition";
|
||||||
|
name = "ESP";
|
||||||
|
start = "1049KB";
|
||||||
|
end = "538MB";
|
||||||
|
bootable = true;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "root";
|
||||||
|
type = "partition";
|
||||||
|
start = "538MB";
|
||||||
|
end = "100%";
|
||||||
|
part-type = "primary";
|
||||||
|
bootable = true;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue