Compare commits
No commits in common. "acaa3af47636e6916573786c40ebd43c44023228" and "09da72a0bf42248b8cff62c6a73fb87f7d94424f" have entirely different histories.
acaa3af476
...
09da72a0bf
21
flake.lock
generated
21
flake.lock
generated
@ -21,26 +21,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-index-database": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1705806513,
|
|
||||||
"narHash": "sha256-FcOmNjhHFfPz2udZbRpZ1sfyhVMr+C2O8kOxPj+HDDk=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-index-database",
|
|
||||||
"rev": "f8e04fbcebcc24cebc91989981bd45f69b963ed7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-index-database",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705641746,
|
"lastModified": 1705641746,
|
||||||
@ -92,7 +72,6 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-index-database": "nix-index-database",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"pkg-android-tools": "pkg-android-tools"
|
"pkg-android-tools": "pkg-android-tools"
|
||||||
|
58
flake.nix
58
flake.nix
@ -14,12 +14,6 @@
|
|||||||
# 33.0.3p2 as suggested by https://xdaforums.com/t/guide-january-3-2024-root-pixel-7-pro-unlock-bootloader-pass-safetynet-both-slots-bootable-more.4505353/
|
# 33.0.3p2 as suggested by https://xdaforums.com/t/guide-january-3-2024-root-pixel-7-pro-unlock-bootloader-pass-safetynet-both-slots-bootable-more.4505353/
|
||||||
# android tools versions [ 34.0.0, 34.0.5 ) causes bootloops somehow and 34.0.5 isn't in nixpkgs yet
|
# android tools versions [ 34.0.0, 34.0.5 ) causes bootloops somehow and 34.0.5 isn't in nixpkgs yet
|
||||||
pkg-android-tools.url = "github:NixOS/nixpkgs/55070e598e0e03d1d116c49b9eff322ef07c6ac6";
|
pkg-android-tools.url = "github:NixOS/nixpkgs/55070e598e0e03d1d116c49b9eff322ef07c6ac6";
|
||||||
|
|
||||||
# provides an up-to-date database for comma
|
|
||||||
nix-index-database = {
|
|
||||||
url = "github:nix-community/nix-index-database";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
||||||
@ -53,19 +47,7 @@
|
|||||||
# This function produces a module that adds the home-manager module to the
|
# This function produces a module that adds the home-manager module to the
|
||||||
# system and configures the given module to the user's Home Manager
|
# system and configures the given module to the user's Home Manager
|
||||||
# configuration
|
# configuration
|
||||||
homeManagerInit = {system, username ? _username , module ? _ : {}, rootModule ? (import ./home/root.nix), userModules ? { ${username} = [ module ] ; root = [ rootModule ]; }, stateVersion }:
|
homeManagerInit = {system, username ? _username , module}: { config, lib, pkgs, ... }: {
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
let
|
|
||||||
mapUserModules = lib.attrsets.mapAttrs (user: modules: {...}:
|
|
||||||
{
|
|
||||||
imports = modules;
|
|
||||||
config = {
|
|
||||||
home = { inherit stateVersion; };
|
|
||||||
};
|
|
||||||
});
|
|
||||||
users = mapUserModules userModules;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
@ -73,7 +55,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
inherit users;
|
users.${username} = module;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs vars;
|
inherit inputs outputs vars;
|
||||||
extraPkgs = mkExtraPkgs system;
|
extraPkgs = mkExtraPkgs system;
|
||||||
@ -83,23 +65,14 @@
|
|||||||
|
|
||||||
# This function produces a nixosSystem which imports configuration.nix and
|
# This function produces a nixosSystem which imports configuration.nix and
|
||||||
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
||||||
mkSystem = {system, hostname, username ? _username, stateVersion}:
|
mkSystem = {system, hostname, username ? _username}:
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
({pkgs, config, lib, ...}@args:
|
|
||||||
{
|
|
||||||
# Values for every single system that would not conceivably need
|
|
||||||
# to be made modular
|
|
||||||
system.stateVersion = stateVersion;
|
|
||||||
# not having the freedom to install unfree programs is unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
|
||||||
})
|
|
||||||
./hosts/${hostname}/configuration.nix
|
./hosts/${hostname}/configuration.nix
|
||||||
(homeManagerInit {
|
(homeManagerInit {
|
||||||
module = import ./hosts/${hostname}/home.nix;
|
module = import ./hosts/${hostname}/home.nix;
|
||||||
inherit username system stateVersion;
|
inherit username system;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
@ -122,10 +95,26 @@
|
|||||||
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
slab = mkSystem {
|
slab = lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
hostname = "slab";
|
modules = [
|
||||||
stateVersion = "23.11";
|
./hosts/slab/configuration.nix
|
||||||
|
./hosts/slab/nvidia-optimus.nix
|
||||||
|
./system/remote.nix
|
||||||
|
./system/plasma.nix
|
||||||
|
./system/fragments/opengl.nix
|
||||||
|
./system/gaming.nix
|
||||||
|
./system/android.nix
|
||||||
|
# ./system/hyprland.nix
|
||||||
|
(homeManagerInit {
|
||||||
|
module = import ./hosts/slab/home.nix;
|
||||||
|
inherit system;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs outputs vars;
|
||||||
|
extraPkgs = mkExtraPkgs system;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nullbox = lib.nixosSystem rec {
|
nullbox = lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@ -138,7 +127,6 @@
|
|||||||
(homeManagerInit {
|
(homeManagerInit {
|
||||||
module = import ./hosts/nullbox/home.nix;
|
module = import ./hosts/nullbox/home.nix;
|
||||||
inherit system;
|
inherit system;
|
||||||
stateVersion = "23.11";
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{ lib, pkgs, config, inputs, ... } @args:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nix-index-database.hmModules.nix-index
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
comma
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }@args:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./comma.nix
|
|
||||||
];
|
|
||||||
}
|
|
@ -16,13 +16,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
./nvidia-optimus.nix
|
|
||||||
../../system/remote.nix
|
|
||||||
../../system/plasma.nix
|
|
||||||
../../system/fragments/opengl.nix
|
|
||||||
../../system/gaming.nix
|
|
||||||
../../system/android.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "slab";
|
networking.hostName = "slab";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user