2024-05-07 15:37:50 -04:00
|
|
|
{
|
|
|
|
description = "Whovian9369's WSL NixOS Config";
|
|
|
|
inputs = {
|
2024-05-08 00:26:39 -04:00
|
|
|
|
2024-05-07 15:37:50 -04:00
|
|
|
### Basically required
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixos-wsl = {
|
|
|
|
url = "github:nix-community/NixOS-WSL/main";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-08 00:26:39 -04:00
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
2024-05-07 15:37:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
### My extra inputs
|
|
|
|
|
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-08 00:26:39 -04:00
|
|
|
# Optional, not necessary for the module
|
2024-05-07 22:55:55 -04:00
|
|
|
inputs.darwin.follows = "";
|
2024-05-08 00:26:39 -04:00
|
|
|
# Optionally choose not to download darwin deps
|
2024-05-07 22:55:55 -04:00
|
|
|
# (saves some resources on Linux)
|
2024-05-08 00:26:39 -04:00
|
|
|
inputs.systems.follows = "nix-systems_default";
|
2024-05-11 03:52:59 -04:00
|
|
|
inputs.home-manager.follows = "home-manager";
|
2024-05-07 15:37:50 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-05-07 22:55:55 -04:00
|
|
|
xil = {
|
|
|
|
url = "github:Qyriad/Xil";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-08 00:26:39 -04:00
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
|
2024-05-08 15:35:46 -04:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-05-29 21:46:22 -04:00
|
|
|
### Lix! Lix! Lix!
|
2024-05-18 19:32:04 -04:00
|
|
|
|
|
|
|
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";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
|
2024-05-08 00:26:39 -04:00
|
|
|
#########
|
|
|
|
# Extra inputs that I am adding just to make my life easier,
|
|
|
|
# but don't like that they're included >:(
|
|
|
|
#########
|
|
|
|
|
|
|
|
# I don't like `flake-utils`, but so many things use it that I might as
|
|
|
|
# well only keep a single version of it.
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
inputs.systems.follows = "nix-systems_default";
|
2024-05-07 22:55:55 -04:00
|
|
|
};
|
2024-05-08 00:26:39 -04:00
|
|
|
|
|
|
|
# Ditto to github:nix-systems/default
|
|
|
|
nix-systems_default = {
|
|
|
|
url = "github:nix-systems/default";
|
|
|
|
};
|
|
|
|
|
2024-05-07 15:37:50 -04:00
|
|
|
}; # inputs
|
|
|
|
|
2024-05-08 15:35:46 -04:00
|
|
|
outputs = {
|
|
|
|
# Needed
|
|
|
|
self, nixpkgs, nixos-wsl,
|
2024-05-18 19:32:04 -04:00
|
|
|
# Lix
|
|
|
|
lix-module,
|
2024-05-11 01:40:59 -04:00
|
|
|
# Added by me
|
2024-05-13 23:18:54 -04:00
|
|
|
agenix, home-manager, nix-index-database, xil, ... }:
|
2024-05-18 03:34:23 -04:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
in
|
2024-05-07 15:37:50 -04:00
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
|
|
|
nixos-wsl = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-05-13 23:18:54 -04:00
|
|
|
./system/nixos-wsl/configuration.nix
|
2024-05-29 15:27:25 -04:00
|
|
|
./system/dotnet_os_codename-workaround.nix
|
|
|
|
# Source of this fix file is
|
|
|
|
# https://github.com/nazarewk-iac/nix-configs/blob/main/modules/ascii-workaround.nix
|
2024-05-18 19:32:04 -04:00
|
|
|
./system/nix_lix.nix
|
2024-05-07 15:37:50 -04:00
|
|
|
nixos-wsl.nixosModules.wsl
|
2024-05-18 19:32:04 -04:00
|
|
|
lix-module.nixosModules.default
|
2024-05-07 15:37:50 -04:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2024-05-14 04:04:51 -04:00
|
|
|
system.configurationRevision = self.shortRev or self.dirtyShortRev or "dirty";
|
2024-05-08 04:44:30 -04:00
|
|
|
|
2024-05-07 15:37:50 -04:00
|
|
|
home-manager = {
|
2024-05-11 01:40:59 -04:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2024-05-07 15:37:50 -04:00
|
|
|
|
2024-05-19 15:52:30 -04:00
|
|
|
users = {
|
|
|
|
whovian = {
|
|
|
|
imports = [
|
|
|
|
./home/home.nix
|
|
|
|
agenix.homeManagerModules.default
|
|
|
|
nix-index-database.hmModules.nix-index
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-05-07 15:37:50 -04:00
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
|
|
|
extraSpecialArgs = {
|
|
|
|
system = "x86_64-linux";
|
2024-05-07 22:55:55 -04:00
|
|
|
inherit xil;
|
2024-05-13 23:18:54 -04:00
|
|
|
inherit nixpkgs;
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
2024-05-18 03:27:59 -04:00
|
|
|
config.allowUnfree = true;
|
2024-05-13 23:18:54 -04:00
|
|
|
};
|
|
|
|
inherit agenix;
|
2024-05-07 15:37:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-06-02 05:56:30 -04:00
|
|
|
|
2024-06-02 05:55:42 -04:00
|
|
|
isoimage = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
# ./configuration.nix
|
|
|
|
{
|
|
|
|
nix = {
|
|
|
|
extraOptions = "
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
";
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix"
|
|
|
|
];
|
|
|
|
};
|
2024-06-04 21:47:21 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
nixps = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./system/xps/configuration.nix
|
|
|
|
# ./system/xps/users.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
system.configurationRevision = self.shortRev or self.dirtyShortRev or "dirty";
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
|
|
|
|
users = {
|
|
|
|
whovian = {
|
|
|
|
imports = [
|
|
|
|
./home/home.nix
|
|
|
|
agenix.homeManagerModules.default
|
|
|
|
nix-index-database.hmModules.nix-index
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
|
|
|
extraSpecialArgs = {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
inherit xil;
|
|
|
|
inherit nixpkgs;
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
inherit agenix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
*/
|
2024-05-07 15:37:50 -04:00
|
|
|
};
|
2024-05-18 03:30:33 -04:00
|
|
|
|
|
|
|
packages.x86_64-linux = {
|
2024-05-29 16:32:18 -04:00
|
|
|
hactoolnet-bin = pkgs.callPackage ./home/packages/hactoolnet-bin/package.nix {};
|
2024-05-18 03:34:23 -04:00
|
|
|
irdkit = pkgs.callPackage ./home/packages/irdkit/package.nix {};
|
|
|
|
ird_tools = pkgs.callPackage ./home/packages/ird_tools/package.nix {};
|
2024-05-18 05:44:36 -04:00
|
|
|
ps3dec = pkgs.callPackage ./home/packages/ps3dec/package.nix {};
|
2024-05-18 06:27:33 -04:00
|
|
|
sabretools = pkgs.callPackage ./home/packages/sabretools/package.nix {};
|
2024-05-18 17:46:13 -04:00
|
|
|
rom-properties = pkgs.callPackage ./home/packages/rom-properties/package.nix {};
|
2024-05-28 23:43:52 -04:00
|
|
|
new_rclone = pkgs.rclone.overrideAttrs (
|
|
|
|
oldAttrs: {
|
|
|
|
patches = [ ./home/packages/new_rclone/patches/rclone_8ffe3e462cbf5688c37c54009db09d8dcb486860.diff ];
|
|
|
|
}
|
|
|
|
);
|
2024-05-18 03:30:33 -04:00
|
|
|
};
|
2024-05-07 15:37:50 -04:00
|
|
|
};
|
|
|
|
}
|