mirror of
https://git.gay/xqtc/nixos-config
synced 2024-12-04 10:23:55 +01:00
nix fmt
This commit is contained in:
parent
590734a38b
commit
828989b482
|
@ -5,7 +5,7 @@
|
|||
config.allowUnfree = true;
|
||||
# The allowUnfreePredicate is due to home-manager#2942 (I haven't actually checked that it is necessary)
|
||||
# https://github.com/nix-community/home-manager/issues/2942
|
||||
config.allowUnfreePredicate = (_: true);
|
||||
config.allowUnfreePredicate = _: true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
{ lib, flake-parts-lib, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
{
|
||||
lib,
|
||||
flake-parts-lib,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
inherit (flake-parts-lib)
|
||||
inherit
|
||||
(flake-parts-lib)
|
||||
mkTransposedPerSystemModule
|
||||
;
|
||||
in
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
{inputs, lib, ...}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hm-flake-part.nix
|
||||
];
|
||||
perSystem = { config, self', inputs', pkgs, system, ... }: let
|
||||
perSystem = {
|
||||
config,
|
||||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
# split system (e.g. x86_64-linux) into os and arch
|
||||
splitSystem = lib.splitString "-" system;
|
||||
os = builtins.elemAt splitSystem 0;
|
||||
|
|
|
@ -1,7 +1,17 @@
|
|||
{inputs, lib, ...}: {
|
||||
flake.nixosConfigurations = lib.genAttrs [
|
||||
"asmodeus" "seraphim" "lilith" "lambda" "beleth"
|
||||
] (name: inputs.nixpkgs.lib.nixosSystem {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
flake.nixosConfigurations =
|
||||
lib.genAttrs [
|
||||
"asmodeus"
|
||||
"seraphim"
|
||||
"lilith"
|
||||
"lambda"
|
||||
"beleth"
|
||||
] (name:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
../hosts/x86_64-linux/${name}
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -42,14 +42,22 @@
|
|||
};
|
||||
#inputs.agenix.url = "github:ryantm/agenix";
|
||||
|
||||
outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
outputs = inputs @ {flake-parts, ...}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
./flake-mods/hm.nix
|
||||
./flake-mods/nixosHosts.nix
|
||||
./flake-mods/allowUnfree.nix
|
||||
];
|
||||
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
||||
perSystem = { config, self', inputs', pkgs, system, ... }: {};
|
||||
perSystem = {
|
||||
config,
|
||||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: {};
|
||||
flake = {};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
./system.nix
|
||||
];
|
||||
home.username = "xqtc";
|
||||
home.homeDirectory = if config.os == "linux" then "/home/xqtc" else "/Users/xqtc";
|
||||
home.homeDirectory =
|
||||
if config.os == "linux"
|
||||
then "/home/xqtc"
|
||||
else "/Users/xqtc";
|
||||
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
...
|
||||
}:
|
||||
with inputs; {
|
||||
home.sessionVariables.DEFAULT_BROWSER = if (config.os == "linux") then "${pkgs.firefox}/bin/firefox" else "firefox";
|
||||
home.sessionVariables.DEFAULT_BROWSER =
|
||||
if (config.os == "linux")
|
||||
then "${pkgs.firefox}/bin/firefox"
|
||||
else "firefox";
|
||||
|
||||
programs.firefox = lib.mkIf (config.os == "linux") {
|
||||
enable = true;
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
maxfetch = pkgs.writeScriptBin "maxfetch" (builtins.readFile ../config-files/maxfetch.sh);
|
||||
startdwl = pkgs.writeScriptBin "startdwl" (builtins.readFile ../config-files/startdwl.sh);
|
||||
in {
|
||||
home.packages = (lib.optionals (config.os == "linux") (with pkgs; [
|
||||
home.packages =
|
||||
(lib.optionals (config.os == "linux") (with pkgs; [
|
||||
yubioath-flutter
|
||||
steam
|
||||
heroic
|
||||
|
@ -41,7 +42,8 @@ in {
|
|||
signal-desktop
|
||||
# ida-free
|
||||
# spotify
|
||||
])) ++ (with pkgs; [
|
||||
]))
|
||||
++ (with pkgs; [
|
||||
nh
|
||||
|
||||
ncspot
|
||||
|
@ -74,20 +76,15 @@ in {
|
|||
|
||||
moodle-dl
|
||||
|
||||
|
||||
obsidian
|
||||
|
||||
|
||||
|
||||
prismlauncher
|
||||
|
||||
# marked as broken
|
||||
# syncthingtray
|
||||
|
||||
|
||||
rbw
|
||||
|
||||
|
||||
nodejs
|
||||
|
||||
# cabal
|
||||
|
@ -97,7 +94,6 @@ in {
|
|||
# rizin
|
||||
# (cutter.withPlugins (ps: with ps; [jsdec rz-ghidra sigdb]))
|
||||
|
||||
|
||||
nerdfonts
|
||||
ipafont
|
||||
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
...
|
||||
}: {
|
||||
programs = {
|
||||
zsh.enable = if config.os == "linux" then true else false;
|
||||
zsh.enable =
|
||||
if config.os == "linux"
|
||||
then true
|
||||
else false;
|
||||
atuin = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
|
||||
age = {
|
||||
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
||||
keyFile = if (config.os == "linux") then "/home/xqtc/.config/sops/age/keys.txt" else "/Users/xqtc/.config/sops/age/keys.txt";
|
||||
keyFile =
|
||||
if (config.os == "linux")
|
||||
then "/home/xqtc/.config/sops/age/keys.txt"
|
||||
else "/Users/xqtc/.config/sops/age/keys.txt";
|
||||
generateKey = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue