Compare commits
7
Commits
d39407ceb5
...
6950a07a09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6950a07a09
|
||
|
|
8faa566d5c
|
||
|
|
1aec02c503
|
||
|
|
b8809bbbdd
|
||
|
|
d9b16bd58e
|
||
|
|
56cd152a04
|
||
|
|
8a514d2296
|
@@ -42,79 +42,24 @@
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-stable, nixpkgs-fixed, home-manager, ... }@inputs: let
|
||||
system = "x86_64-linux";
|
||||
config = { allowUnfree = true; };
|
||||
mkHost = hostname: nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
;
|
||||
pkgs-unstable = import nixpkgs { inherit system config; };
|
||||
pkgs-fixed = import nixpkgs-fixed { inherit system config; };
|
||||
};
|
||||
modules = [ ./host/${hostname}/configuration.nix ];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
Rias = nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
pkgs-unstable = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs-fixed = import nixpkgs-fixed {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
inherit inputs system;
|
||||
};
|
||||
modules = [ ./host/Rias/configuration.nix ];
|
||||
};
|
||||
|
||||
Senko = nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
pkgs-unstable = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs-fixed = import nixpkgs-fixed {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
inherit inputs system;
|
||||
};
|
||||
modules = [ ./host/Senko/configuration.nix ];
|
||||
};
|
||||
|
||||
Eclipse = nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
pkgs-unstable = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs-fixed = import nixpkgs-fixed {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
inherit inputs system;
|
||||
};
|
||||
modules = [ ./host/Eclipse/configuration.nix ];
|
||||
};
|
||||
|
||||
Impreza = nixpkgs-stable.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
pkgs-unstable = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs-fixed = import nixpkgs-fixed {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
inherit inputs system;
|
||||
};
|
||||
modules = [ ./host/Impreza/configuration.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
devShells."${system}".default = let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in pkgs.mkShell {
|
||||
shellHook = "zsh";
|
||||
packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rust-analyzer
|
||||
lldb
|
||||
];
|
||||
Rias = mkHost "Rias";
|
||||
Senko = mkHost "Senko";
|
||||
Eclipse = mkHost "Eclipse";
|
||||
Impreza = mkHost "Impreza";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -29,4 +29,6 @@ in {
|
||||
nixpkgs.config.allowBroken = true;
|
||||
programs.gamemode.enable = true;
|
||||
services.printing.enable = true;
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "chest" ];
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
imports = [ inputs.aagl.nixosModules.default ];
|
||||
nix.settings = inputs.aagl.nixConfig; # Set up Cachix
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
programs.sleepy-launcher.enable = true;
|
||||
networking.hosts."0.0.0.0" = [
|
||||
"overseauspider.yuanshen.com"
|
||||
"log-upload-os.hoyoverse.com"
|
||||
|
||||
@@ -41,4 +41,6 @@
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
boot.loader.grub.useOSProber = true;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
useOSProber = true;
|
||||
};
|
||||
};
|
||||
consoleLogLevel = 0;
|
||||
|
||||
@@ -55,11 +55,13 @@
|
||||
flakeDir = "~/nix";
|
||||
in {
|
||||
rb = "nh os switch ${flakeDir}";
|
||||
trb = "nh os test ${flakeDir}";
|
||||
upd = "nix flake update --flake ${flakeDir}";
|
||||
|
||||
cat = "${pkgs.lib.getExe pkgs.bat}";
|
||||
cd = "z";
|
||||
lg = "lazygit";
|
||||
s = "nix-shell . --run zsh";
|
||||
};
|
||||
|
||||
initContent = ''
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
gaps_in = 5;
|
||||
gaps_out = 5;
|
||||
border_size = 2;
|
||||
"col.active_border" = "rgba(${colors.base0C}ee) rgba(${colors.base0B}ee) 45deg";
|
||||
"col.active_border" = "rgba(${colors.base0A}ee) rgba(${colors.base09}ee) 45deg";
|
||||
"col.inactive_border" = "rgba(${colors.base05}aa)";
|
||||
|
||||
layout = "dwindle";
|
||||
|
||||
Reference in New Issue
Block a user