mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
work
This commit is contained in:
parent
8d050db3b3
commit
8100701e5d
5 changed files with 86 additions and 2 deletions
10
flake.nix
10
flake.nix
|
|
@ -89,6 +89,11 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# 3rd party inputs
|
||||
disko = {
|
||||
# Declarative partitioning
|
||||
|
|
@ -101,6 +106,11 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixvirt = {
|
||||
url = "https://flakehub.com/f/AshleyYakeley/NixVirt/*.tar.gz";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# CrOS inputs
|
||||
#nix-secrets.url = "github:TheWanderingCrow/nix-secrets";
|
||||
nvix.url = "github:TheWanderingCrow/nvix";
|
||||
|
|
|
|||
1
hosts/common/core/darwin.nix
Normal file
1
hosts/common/core/darwin.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -1,3 +1,59 @@
|
|||
{lib, ...}: {
|
||||
imports = lib.custom.scanPaths ./.;
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
isDarwin,
|
||||
...
|
||||
}: let
|
||||
platform =
|
||||
if isDarwin
|
||||
then "darwin"
|
||||
else "nixos";
|
||||
platformModules = "${platform}Modules";
|
||||
in {
|
||||
imports = lib.flatten [
|
||||
inputs.home-manager.${platformModules}.home-manager
|
||||
inputs.sops-nix.${platformModules}.sops
|
||||
|
||||
(map lib.custom.relativeToRoot [
|
||||
"hosts/common/core/${platform}.nix"
|
||||
"hosts/common/core/shell.nix"
|
||||
"hosts/common/core/sops.nix"
|
||||
"hosts/common/core/ssh.nix"
|
||||
])
|
||||
];
|
||||
|
||||
hostSpec = {
|
||||
username = "crow";
|
||||
handle = "TheWanderingCrow";
|
||||
};
|
||||
|
||||
networking.hostName = config.hostSpec.hostName;
|
||||
|
||||
environment.systemPackages = [pkgs.openssh];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.backupFileExtension = "bk";
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
connect-timeout = 5;
|
||||
log-lines = 25;
|
||||
min-free = 128000000;
|
||||
max-free = 1000000000;
|
||||
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
fallback = true;
|
||||
auto-optimise-store = true;
|
||||
|
||||
trusted-users = ["@wheel"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
8
hosts/common/core/nixos.nix
Normal file
8
hosts/common/core/nixos.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
time.timeZone = lib.mkDefault "America/New_York";
|
||||
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
|
||||
}
|
||||
9
hosts/common/optional/audio.nix
Normal file
9
hosts/common/optional/audio.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
services.pulseaudio.support32Bit = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue