Compare commits
2 commits
4a28a9e671
...
4e0ab8ec59
Author | SHA1 | Date | |
---|---|---|---|
|
4e0ab8ec59 | ||
|
62e89bb120 |
|
@ -8,9 +8,10 @@
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./btrbk.nix
|
./btrbk.nix
|
||||||
|
./builder.nix
|
||||||
|
./dual-graphics.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./builder.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Nix cache
|
# Nix cache
|
||||||
|
|
12
firestar/dual-graphics.nix
Normal file
12
firestar/dual-graphics.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
};
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [ vaapiVdpau ];
|
||||||
|
services.xserver.videoDrivers = ["amdgpu" "nvidia"];
|
||||||
|
}
|
104
flake.lock
104
flake.lock
|
@ -1,12 +1,87 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710146030,
|
||||||
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flakey-profile": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1712898590,
|
||||||
|
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714955862,
|
||||||
|
"narHash": "sha256-REWlo2RYHfJkxnmZTEJu3Cd/2VM+wjjpPy7Xi4BdDTQ=",
|
||||||
|
"ref": "refs/tags/2.90-beta.1",
|
||||||
|
"rev": "b6799ab0374a8e1907a48915d3187e07da41d88c",
|
||||||
|
"revCount": 15501,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git@git.lix.systems/lix-project/lix"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "refs/tags/2.90-beta.1",
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git@git.lix.systems/lix-project/lix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lix-module": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"flakey-profile": "flakey-profile",
|
||||||
|
"lix": [
|
||||||
|
"lix"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715032198,
|
||||||
|
"narHash": "sha256-UwVDOL/eRSBnM8IGOGVraUwGqUsKnIJQ1xpzb87RkXI=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "10e849bdce7e2751b731d2dade2a97d8878ab647",
|
||||||
|
"revCount": 66,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/nixos-module"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/nixos-module"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714746424,
|
"lastModified": 1715010655,
|
||||||
"narHash": "sha256-Jdyw7VcM+jQ0uSXgjFj8UdXZ229yOvPNlYkKyKyHA4s=",
|
"narHash": "sha256-FmdhvR/hgBkPDvIv/HOEIQsSMaVXh8wvTrnep8dF3Jc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3f017311191fe6d501ca2496a835d012f656ee9c",
|
"rev": "d1659c9eb8af718118fb4bbe2c86797c8b8623eb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -18,11 +93,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714685007,
|
"lastModified": 1714782413,
|
||||||
"narHash": "sha256-Q4ddhb5eC5pwci0QhAapFwnsc8X8H9ZMQiWpsofBsDc=",
|
"narHash": "sha256-tbg0MEuKaPcUrnmGCu4xiY5F+7LW2+ECPKVAJd2HLwM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "383ffe076d9b633a2e97b6e4dd97fc15fcf30159",
|
"rev": "651b4702e27a388f0f18e1b970534162dec09aff",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -33,9 +108,26 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"lix": "lix",
|
||||||
|
"lix-module": "lix-module",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
29
flake.nix
29
flake.nix
|
@ -1,28 +1,29 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
|
lix = {
|
||||||
|
url = "git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
lix-module = {
|
||||||
|
url = "git+https://git.lix.systems/lix-project/nixos-module";
|
||||||
|
inputs.lix.follows = "lix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
nixpkgs.url = "nixpkgs/nixos-23.11";
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware, ... }@attrs: {
|
outputs = { self, lix-module, nixpkgs, nixos-hardware, ... }@attrs: {
|
||||||
nixosConfigurations.firestar = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.firestar = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
|
lix-module.nixosModules.default
|
||||||
nixos-hardware.nixosModules.common-gpu-amd
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
({ config, pkgs, ... }: {
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
open = false;
|
|
||||||
nvidiaSettings = true;
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
};
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [ vaapiVdpau ];
|
|
||||||
services.xserver.videoDrivers = ["amdgpu" "nvidia"];
|
|
||||||
})
|
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./firestar
|
./firestar
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
|
./lix-cache.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
(import ./user.nix {
|
(import ./user.nix {
|
||||||
name = "Aode";
|
name = "Aode";
|
||||||
|
@ -42,10 +43,12 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
|
lix-module.nixosModules.default
|
||||||
nixos-hardware.nixosModules.framework-11th-gen-intel
|
nixos-hardware.nixosModules.framework-11th-gen-intel
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./graystripe
|
./graystripe
|
||||||
|
./lix-cache.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
(import ./user.nix { name = "Tavi"; })
|
(import ./user.nix { name = "Tavi"; })
|
||||||
{
|
{
|
||||||
|
@ -60,11 +63,13 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
|
lix-module.nixosModules.default
|
||||||
nixos-hardware.nixosModules.framework-16-7040-amd
|
nixos-hardware.nixosModules.framework-16-7040-amd
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./squirrelflight
|
./lix-cache.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
./squirrelflight
|
||||||
(import ./user.nix { name = "Tavi"; })
|
(import ./user.nix { name = "Tavi"; })
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|
11
lix-cache.nix
Normal file
11
lix-cache.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nix.settings.extra-substituters = [
|
||||||
|
"https://cache.lix.systems"
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-public-keys = [
|
||||||
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue