Fix steam and add school profile

This commit is contained in:
Bad 2021-04-08 12:35:13 +02:00
parent 8f204d6f50
commit 7f86d72347
8 changed files with 32 additions and 75 deletions

View file

@ -1,32 +0,0 @@
# Editor configuration, see http://editorconfig.org
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2
# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_size = unset
[{.*,secrets}/**]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
charset = unset
indent_style = unset
indent_size = unset
[*.py]
indent_size = 4
[*.md]
max_line_length = off
trim_trailing_whitespace = false

View file

@ -37,11 +37,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1616437843, "lastModified": 1617693609,
"narHash": "sha256-mOrPTDNW2hwryNBAVkmWuDdb9Owjb7AcSwob7ecfRIk=", "narHash": "sha256-/+6wm08yHK8mhyljzELD4WE9Gh8XUVbHL0R1TQpZtTQ=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "1a760930266ac00b7d422320c0b01d583d294ec7", "rev": "a7492a8c76dcc702d0a65cd820a5f9baa8702684",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -153,11 +153,11 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1617082367, "lastModified": 1617636226,
"narHash": "sha256-W0cQPGjc4IVzryaGycuoS8KZkXafS1P23w/fcKLoD5Y=", "narHash": "sha256-iZhBWrOR2DoDs1C+0FlnM9AQLMol/qoGQ+d+S43CKJM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "04a2b269d8921505a2969fc9ec25c1f517f2b307", "rev": "3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -168,11 +168,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1617608389, "lastModified": 1617690895,
"narHash": "sha256-Dom5AICRbxorNjaP+7to8rSJ5+8I52UwaJu9M1GkO10=", "narHash": "sha256-5TUizPI+ibn/LBzevTIIyIZ1XeLl3HU0PTRk7H6AKTQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "085790185c3e8a7dd6c2f456eaf15ffcc66b0ac9", "rev": "7c00c8b5cab5dedb6519eabba7ca6d069e2dfdae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -183,11 +183,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1617651867, "lastModified": 1617784025,
"narHash": "sha256-ktlubMXrvk2HOAH0A0guiWNjebfEuV1CTqNjvApBlho=", "narHash": "sha256-SToCdZXGbUAGQU//DTlzxOvIk0QeR4bg9aFv2u6M7EA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "b78c87469acc055d40d54669e4e052a00e831f98", "rev": "44611746a60fa2dd11ffb3881593f9d78eed2770",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -197,11 +197,11 @@
}, },
"override": { "override": {
"locked": { "locked": {
"lastModified": 1617658314, "lastModified": 1617784895,
"narHash": "sha256-HAlamxyHjggTZqF/xfeCZd9N9Xyq7cS/VfP+2VLuQ44=", "narHash": "sha256-gJOCUkf2Y1T8lFFjgw1zsNM+f0yQ1YEq3p31P8YUHHY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "42368bf52159d0be87141e7a7fd4949ff2f29148", "rev": "de679c57ca579974f35fab5444c7892ceb16230a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,6 +5,7 @@
{ {
nixos.url = "nixpkgs/nixos-unstable"; nixos.url = "nixpkgs/nixos-unstable";
override.url = "nixpkgs"; override.url = "nixpkgs";
ci-agent = { ci-agent = {
url = "github:hercules-ci/hercules-ci-agent"; url = "github:hercules-ci/hercules-ci-agent";
inputs = { nix-darwin.follows = "darwin"; flake-compat.follows = "flake-compat"; nixos-20_09.follows = "nixos"; nixos-unstable.follows = "override"; }; inputs = { nix-darwin.follows = "darwin"; flake-compat.follows = "flake-compat"; nixos-20_09.follows = "nixos"; nixos-unstable.follows = "override"; };

View file

@ -1,6 +1,6 @@
{ suites, ... }@inputs: { suites, modulesPath, ... }@inputs:
{ {
imports = builtins.trace (builtins.attrNames inputs) (suites.desktop ++ suites.amd); imports = suites.desktop ++ [ (modulesPath + "/installer/scan/not-detected.nix") ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
@ -14,6 +14,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelParams = [ "boot.shell_on_fail=1" "shell_on_fail=1" "shell_on_fail" "boot.shell_on_fail" ];
networking.hostName = "tesco"; # Define your hostname. networking.hostName = "tesco"; # Define your hostname.
networking.useDHCP = false; networking.useDHCP = false;
networking.interfaces.enp6s0.useDHCP = true; networking.interfaces.enp6s0.useDHCP = true;

View file

@ -8,26 +8,6 @@
# packages pulled from override # packages pulled from override
packages = pkgs: final: prev: { packages = pkgs: final: prev: {
inherit (pkgs) #inherit (pkgs)
cachix
dhall
discord
element-desktop
manix
nixpkgs-fmt
qutebrowser
signal-desktop
starship;
haskellPackages = prev.haskellPackages.override {
overrides = hfinal: hprev:
let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version;
in
{
# same for haskell packages, matching ghc versions
inherit (pkgs.haskell.packages."ghc${version}")
haskell-language-server;
};
};
}; };
} }

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = [ environment.systemPackages = [
pkgs.steam pkgs.flatpak
pkgs.lutris # pkgs.steam
# pkgs.lutris
]; ];
} }

View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ungoogled-chromium
];
}

View file

@ -2,9 +2,9 @@
{ {
system = with profiles; rec { system = with profiles; rec {
base = [ users.mae users.root ]; base = [ users.mae users.root ];
amd = [ profiles.amd ]; workstation = base ++ [ sway develop game profiles.workstation ssh ];
desktop = base ++ [ sway develop game workstation ssh users.mae users.root ]; desktop = workstation ++ [ amd school ];
lap = desktop ++ [ laptop bluetooth print networkmanager ]; lap = workstation ++ [ laptop bluetooth print networkmanager ];
}; };
user = with userProfiles; rec { user = with userProfiles; rec {
base = [ direnv git ]; base = [ direnv git ];