???
This commit is contained in:
parent
b3b9024c13
commit
4f0d1031f1
|
@ -1,18 +1,18 @@
|
|||
# welcome to susOS config, run nixos-help if you need it .
|
||||
{ config, pkgs, ... }:
|
||||
let unstable = let
|
||||
nixos-unstable =
|
||||
builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||
in import nixos-unstable { config = { allowUnfree = true; }; };
|
||||
home-manager =
|
||||
let
|
||||
unstable = let nixos-unstable =
|
||||
builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||
in (import nixos-unstable) { config.allowUnfree = true; };
|
||||
home-manager = let home-manager-tar =
|
||||
builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in (import "${home-manager-tar}/nixos");
|
||||
in {
|
||||
imports = [
|
||||
./hosts/vulkan
|
||||
# home manager
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager
|
||||
./hosts/vulkan
|
||||
];
|
||||
|
||||
# nix options
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
|
@ -83,9 +83,10 @@ in {
|
|||
|
||||
# add and configure users
|
||||
users.users.hive = {
|
||||
initialPassword = "";
|
||||
isNormalUser = true;
|
||||
description = "The Hive";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||
};
|
||||
|
||||
# import home-manager config from home.nix
|
||||
|
@ -96,6 +97,7 @@ in {
|
|||
nixpkgs.config.allowUnfree = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
# unstable.fish
|
||||
unstable.printrun
|
||||
pass
|
||||
git
|
||||
neovim
|
||||
|
@ -112,30 +114,16 @@ in {
|
|||
pinentryFlavor = "gnome3";
|
||||
};
|
||||
|
||||
# systemd services / timers
|
||||
|
||||
# systemd.timers."nix-store-cleanup" = {
|
||||
# wantedBy = [ "timers.target" ];
|
||||
# timerConfig = {
|
||||
# OnBootSec = "5m";
|
||||
# OnUnitActiveSec = "5h";
|
||||
# Unit = "nix-store-cleanup.service";
|
||||
# };
|
||||
# };
|
||||
|
||||
# systemd.services."nix-store-cleanup" = {
|
||||
# script = ''
|
||||
# nix-collect-garbage
|
||||
# '';
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# };
|
||||
# };
|
||||
|
||||
# enable configure services
|
||||
services.printing.enable = true; # printing
|
||||
services.openssh.enable = true; # remote shell
|
||||
services.flatpak.enable = true; #flatpak lol
|
||||
services.udev.extraRules =
|
||||
''
|
||||
# Enable serial devices, for example 3D printers
|
||||
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", KERNEL=="ttyACM*", TAG+="uaccess"
|
||||
'';
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue