Reformat code

This commit is contained in:
Bad 2022-07-03 01:06:34 +02:00
parent 7f29a1f336
commit a46b9bc7ad
8 changed files with 20 additions and 19 deletions

View File

@ -18,7 +18,7 @@
digga.inputs.deploy.follows = "deploy"; digga.inputs.deploy.follows = "deploy";
home.url = "github:nix-community/home-manager/master"; home.url = "github:nix-community/home-manager/master";
# home.url = "path:/home/mae/home-manager"; # home.url = "path:/home/mae/home-manager";
home.inputs.nixpkgs.follows = "latest"; home.inputs.nixpkgs.follows = "latest";
home.inputs.utils.follows = "flake-utils"; home.inputs.utils.follows = "flake-utils";
@ -40,12 +40,12 @@
naersk.inputs.nixpkgs.follows = "nixos"; naersk.inputs.nixpkgs.follows = "nixos";
peerix.url = "github:cid-chan/peerix"; peerix.url = "github:cid-chan/peerix";
# peerix.url = "github:MaeIsBad/peerix"; # peerix.url = "github:MaeIsBad/peerix";
peerix.inputs.nixpkgs.follows = "nixos"; peerix.inputs.nixpkgs.follows = "nixos";
nixos-hardware.url = "github:nixos/nixos-hardware"; nixos-hardware.url = "github:nixos/nixos-hardware";
fenix.url = "github:nix-community/fenix"; fenix.url = "github:nix-community/fenix";
# fenix.inputs.nixpkgs.follows = "nixos"; # fenix.inputs.nixpkgs.follows = "nixos";
}; };
outputs = outputs =

View File

@ -10,7 +10,7 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment? system.stateVersion = "21.05"; # Did you read the comment?
boot.loader.grub = { boot.loader.grub = {
enable = true; enable = true;
version = 2; version = 2;
@ -52,17 +52,18 @@
}; };
fileSystems."/" = fileSystems."/" =
{ device = "/dev/bcache0"; {
device = "/dev/bcache0";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-label/BOOT"; {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-label/ssd-swap"; } [{ device = "/dev/disk/by-label/ssd-swap"; }];
];
} }

View File

@ -1,5 +1,5 @@
channels: final: prev: channels: final: prev:
let let
latest = channels.latest; latest = channels.latest;
in in
{ {
@ -29,7 +29,7 @@ in
rust-analyzer rust-analyzer
cargo-crev cargo-crev
cargo-fuzz cargo-fuzz
tdesktop tdesktop
vimPlugins vimPlugins
neovim-unwrapped; neovim-unwrapped;

View File

@ -6,7 +6,7 @@ in
# Cachix # Cachix
nix = { nix = {
binaryCaches = [ binaryCaches = [
"https://cache.nixos.org/" "https://cache.nixos.org/"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];
binaryCachePublicKeys = [ binaryCachePublicKeys = [
@ -32,7 +32,7 @@ in
environment.variables.EDITOR = "$EDITOR"; environment.variables.EDITOR = "$EDITOR";
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";
services.logind.extraConfig = '' services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed # dont shutdown when power button is short-pressed
HandlePowerKey=ignore HandlePowerKey=ignore
''; '';

View File

@ -7,7 +7,7 @@
minetest minetest
mumble mumble
polymc polymc
(retroarch.override {cores = [libretro.snes9x]; }) (retroarch.override { cores = [ libretro.snes9x ]; })
olympus olympus
godot godot
]; ];

View File

@ -1,9 +1,9 @@
{config, pkgs, ...}: { config, pkgs, ... }:
let let
peerix_user = "peerix"; peerix_user = "peerix";
in in
{ {
users.groups.${peerix_user} = {}; users.groups.${peerix_user} = { };
users.users.${peerix_user} = { users.users.${peerix_user} = {
group = peerix_user; group = peerix_user;
isSystemUser = true; isSystemUser = true;

View File

@ -6,7 +6,7 @@ let
tesco_sys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqryVRMbcei0pZTOP1wgTVzn452vgsUP7MrEb0LQ17s root@tesco"; tesco_sys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqryVRMbcei0pZTOP1wgTVzn452vgsUP7MrEb0LQ17s root@tesco";
mae_tesco = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN64wtGODBn2yygv1sOXnV8qbXImbOttMlhdTKEyQCoT mae@tesco"; mae_tesco = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN64wtGODBn2yygv1sOXnV8qbXImbOttMlhdTKEyQCoT mae@tesco";
systemKeys = [teapot_sys tesco_sys]; systemKeys = [ teapot_sys tesco_sys ];
allKeys = [ mae_teapot mae_tesco ] ++ systemKeys; allKeys = [ mae_teapot mae_tesco ] ++ systemKeys;
in in
{ {

View File

@ -8,7 +8,7 @@
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "wheel" "video" "lp" "scanner" "adbusers" "render" "libvirtd" "podman" "docker" ]; extraGroups = [ "wheel" "video" "lp" "scanner" "adbusers" "render" "libvirtd" "podman" "docker" ];
}; };
home-manager.users.mae = {pkgs, ...}: { home-manager.users.mae = { pkgs, ... }: {
imports = [ ../profiles/direnv ../profiles/git ../profiles/zsh ../profiles/neovim ../profiles/syncthing ../profiles/kdeconnect ../profiles/podman ../profiles/alacritty ../profiles/tmux ../profiles/mpv ../profiles/sway ]; imports = [ ../profiles/direnv ../profiles/git ../profiles/zsh ../profiles/neovim ../profiles/syncthing ../profiles/kdeconnect ../profiles/podman ../profiles/alacritty ../profiles/tmux ../profiles/mpv ../profiles/sway ];
home.sessionVariables = { home.sessionVariables = {