Skip to content

Commit

Permalink
silverfox: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Jun 13, 2024
1 parent 49fad51 commit 4b22173
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 29 deletions.
10 changes: 0 additions & 10 deletions home-desktop/home/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,9 @@
}:
with pkgs;
[
bitwarden
wl-clipboard
swayidle
qbittorrent
tdesktop
firefox-wayland
vscode-fhs

ncspot
sptlrx
playerctl
cava
vlc
wf-recorder
blender-hip
]
4 changes: 0 additions & 4 deletions home-desktop/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@
"--gtk-version=4"
];
};
obs-studio = {
enable = true;
plugins = with pkgs; [ obs-studio-plugins.wlrobs ];
};
}
3 changes: 2 additions & 1 deletion hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ in
silverfox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./silver/_hardware.nix
./silverfox/_hardware.nix
silverfox-module
inputs.home-manager.nixosModules.home-manager
inputs.nixos-apple-silicon.nixosModules.apple-silicon-support
inputs.chaotic.homeManagerModules.default
{
nix.registry.self.flake = self;
}
Expand Down
2 changes: 1 addition & 1 deletion hosts/silverfox/_hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";

powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.asahi.peripheralFirmwareDirectory = /boot/asahi;
hardware.asahi.peripheralFirmwareDirectory = /mnt/boot/asahi;
hardware.asahi.useExperimentalGPUDriver = true;
}
20 changes: 7 additions & 13 deletions hosts/silverfox/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ inputs, pkgs, ... }:
{ inputs, username, pkgs, ... }:

{
boot.loader.systemd-boot = {
Expand All @@ -25,6 +21,12 @@
systemd.oomd.enableRootSlice = true;
systemd.oomd.enableUserSlices = true;

users.users.${username} = {
isNormalUser = true;
shell = pkgs.fish;
hashedPassword = "$6$jVI2tdENaEqUyZGh$rni.joO5US9t9RYM9wlIvia4L1YOObs44Kt3gBcooBJTeSFGyEorciM2CrKMEnzbojpi1KgPPe256i5Q46N1d0";
};

i18n = {
defaultLocale = "en_US.UTF-8";
inputMethod = {
Expand All @@ -44,14 +46,6 @@

system.stateVersion = "24.05";

environment.systemPackages = with pkgs; [
file
patchelf
btop

firefox
];

hardware.bluetooth.enable = true;
virtualisation.podman.enable = true;
}
24 changes: 24 additions & 0 deletions hosts/silverfox/nix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ inputs }:
{
registry = {
# self.flake = self;
nixpkgs.flake = inputs.nixpkgs;
};

extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';

gc = {
automatic = true;
options = "--delete-older-than 30d";
dates = "Sun 14:00";
};

settings = {
nix-path = [ "nixpkgs=${inputs.nixpkgs}" ];
auto-optimise-store = true;
};
}
7 changes: 7 additions & 0 deletions hosts/silverfox/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ inputs, config }:
{
config = {
allowUnfree = true;
allowBroken = true;
};
}
10 changes: 10 additions & 0 deletions hosts/silverfox/programs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
git.enable = true;
nm-applet.enable = true;

sway.enable = true;
fish = {
useBabelfish = true;
enable = true;
};
}

0 comments on commit 4b22173

Please sign in to comment.